kopia lustrzana https://github.com/espressif/esp-idf
esp_rom: remove esp_rom.c
rodzic
5efb1140ac
commit
a86d741fc9
|
@ -1,29 +1,25 @@
|
|||
idf_build_get_property(target IDF_TARGET)
|
||||
|
||||
idf_component_register(INCLUDE_DIRS include)
|
||||
|
||||
if(BOOTLOADER_BUILD)
|
||||
# For bootloader, all we need is headers
|
||||
idf_component_register(INCLUDE_DIRS include)
|
||||
set(scripts
|
||||
"${target}/ld/${target}.rom.ld"
|
||||
"${target}/ld/${target}.rom.newlib-funcs.ld"
|
||||
"${target}/ld/${target}.rom.libgcc.ld"
|
||||
)
|
||||
if (target STREQUAL "esp32s2beta")
|
||||
if(target STREQUAL "esp32s2beta")
|
||||
list(APPEND scripts "esp32s2beta/ld/esp32s2beta.rom.spiflash.ld")
|
||||
endif()
|
||||
|
||||
target_linker_script(${COMPONENT_LIB} INTERFACE "${scripts}")
|
||||
else()
|
||||
# Regular app build
|
||||
idf_component_register(SRCS "esp_rom.c"
|
||||
INCLUDE_DIRS include)
|
||||
|
||||
else() # Regular app build
|
||||
set(scripts
|
||||
"${target}/ld/${target}.rom.ld"
|
||||
"${target}/ld/${target}.rom.libgcc.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")
|
||||
|
||||
if(NOT CONFIG_SPIRAM_CACHE_WORKAROUND)
|
||||
|
|
|
@ -19,12 +19,6 @@
|
|||
|
||||
#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
|
||||
extern "C" {
|
||||
#endif
|
||||
|
|
|
@ -21,7 +21,7 @@ extern "C" {
|
|||
|
||||
#include <stdint.h>
|
||||
#include <stdlib.h>
|
||||
#include "rom/efuse.h"
|
||||
#include "efuse.h"
|
||||
|
||||
void ets_hmac_enable(void);
|
||||
|
||||
|
|
Ładowanie…
Reference in New Issue