esp_rom: remove esp_rom.c

pull/4494/head
morris 2019-11-28 21:10:31 +08:00
rodzic 5efb1140ac
commit a86d741fc9
3 zmienionych plików z 6 dodań i 16 usunięć

Wyświetl plik

@ -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)

Wyświetl plik

@ -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

Wyświetl plik

@ -21,7 +21,7 @@ extern "C" {
#include <stdint.h>
#include <stdlib.h>
#include "rom/efuse.h"
#include "efuse.h"
void ets_hmac_enable(void);