esp_rom: remove esp_rom.c
This commit is contained in:
parent
5efb1140ac
commit
a86d741fc9
|
@ -1,29 +1,25 @@
|
||||||
idf_build_get_property(target IDF_TARGET)
|
idf_build_get_property(target IDF_TARGET)
|
||||||
|
|
||||||
|
idf_component_register(INCLUDE_DIRS include)
|
||||||
|
|
||||||
if(BOOTLOADER_BUILD)
|
if(BOOTLOADER_BUILD)
|
||||||
# For bootloader, all we need is headers
|
|
||||||
idf_component_register(INCLUDE_DIRS include)
|
|
||||||
set(scripts
|
set(scripts
|
||||||
"${target}/ld/${target}.rom.ld"
|
"${target}/ld/${target}.rom.ld"
|
||||||
"${target}/ld/${target}.rom.newlib-funcs.ld"
|
"${target}/ld/${target}.rom.newlib-funcs.ld"
|
||||||
"${target}/ld/${target}.rom.libgcc.ld"
|
"${target}/ld/${target}.rom.libgcc.ld"
|
||||||
)
|
)
|
||||||
if (target STREQUAL "esp32s2beta")
|
if(target STREQUAL "esp32s2beta")
|
||||||
list(APPEND scripts "esp32s2beta/ld/esp32s2beta.rom.spiflash.ld")
|
list(APPEND scripts "esp32s2beta/ld/esp32s2beta.rom.spiflash.ld")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
target_linker_script(${COMPONENT_LIB} INTERFACE "${scripts}")
|
target_linker_script(${COMPONENT_LIB} INTERFACE "${scripts}")
|
||||||
else()
|
else() # Regular app build
|
||||||
# Regular app build
|
|
||||||
idf_component_register(SRCS "esp_rom.c"
|
|
||||||
INCLUDE_DIRS include)
|
|
||||||
|
|
||||||
set(scripts
|
set(scripts
|
||||||
"${target}/ld/${target}.rom.ld"
|
"${target}/ld/${target}.rom.ld"
|
||||||
"${target}/ld/${target}.rom.libgcc.ld"
|
"${target}/ld/${target}.rom.libgcc.ld"
|
||||||
"${target}/ld/${target}.rom.newlib-data.ld")
|
"${target}/ld/${target}.rom.newlib-data.ld")
|
||||||
|
|
||||||
if (target STREQUAL "esp32")
|
if(target STREQUAL "esp32")
|
||||||
list(APPEND scripts "${target}/ld/${target}.rom.syscalls.ld")
|
list(APPEND scripts "${target}/ld/${target}.rom.syscalls.ld")
|
||||||
|
|
||||||
if(NOT CONFIG_SPIRAM_CACHE_WORKAROUND)
|
if(NOT CONFIG_SPIRAM_CACHE_WORKAROUND)
|
||||||
|
|
|
@ -19,12 +19,6 @@
|
||||||
|
|
||||||
#include "soc/soc.h"
|
#include "soc/soc.h"
|
||||||
|
|
||||||
#include "sdkconfig.h"
|
|
||||||
|
|
||||||
#ifndef CONFIG_IDF_TARGET_ESP32S2BETA
|
|
||||||
#error "This header should only be included when building for esp32s2beta"
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
extern "C" {
|
extern "C" {
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -21,7 +21,7 @@ extern "C" {
|
||||||
|
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include "rom/efuse.h"
|
#include "efuse.h"
|
||||||
|
|
||||||
void ets_hmac_enable(void);
|
void ets_hmac_enable(void);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue