mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
soc: move peripheral linker scripts out of target component
This commit is contained in:
parent
eef4c516ea
commit
2347e68e6b
@ -10,8 +10,7 @@ LINKER_SCRIPTS := \
|
|||||||
$(COMPONENT_PATH)/ld/$(IDF_TARGET)/bootloader.rom.ld \
|
$(COMPONENT_PATH)/ld/$(IDF_TARGET)/bootloader.rom.ld \
|
||||||
$(IDF_PATH)/components/esp_rom/$(IDF_TARGET)/ld/$(IDF_TARGET).rom.ld \
|
$(IDF_PATH)/components/esp_rom/$(IDF_TARGET)/ld/$(IDF_TARGET).rom.ld \
|
||||||
$(IDF_PATH)/components/esp_rom/$(IDF_TARGET)/ld/$(IDF_TARGET).rom.newlib-funcs.ld \
|
$(IDF_PATH)/components/esp_rom/$(IDF_TARGET)/ld/$(IDF_TARGET).rom.newlib-funcs.ld \
|
||||||
$(IDF_PATH)/components/esp_rom/$(IDF_TARGET)/ld/$(IDF_TARGET).rom.api.ld \
|
$(IDF_PATH)/components/esp_rom/$(IDF_TARGET)/ld/$(IDF_TARGET).rom.api.ld
|
||||||
$(IDF_PATH)/components/$(IDF_TARGET)/ld/$(IDF_TARGET).peripherals.ld
|
|
||||||
|
|
||||||
# SPI driver patch for ROM is only needed in ESP32
|
# SPI driver patch for ROM is only needed in ESP32
|
||||||
ifdef CONFIG_IDF_TARGET_ESP32
|
ifdef CONFIG_IDF_TARGET_ESP32
|
||||||
|
@ -12,5 +12,3 @@ endif()
|
|||||||
idf_component_register(INCLUDE_DIRS include
|
idf_component_register(INCLUDE_DIRS include
|
||||||
REQUIRES xtensa "${legacy_reqs}"
|
REQUIRES xtensa "${legacy_reqs}"
|
||||||
REQUIRED_IDF_TARGETS esp32)
|
REQUIRED_IDF_TARGETS esp32)
|
||||||
|
|
||||||
target_linker_script(${COMPONENT_LIB} INTERFACE "ld/esp32.peripherals.ld")
|
|
||||||
|
@ -1,6 +1,3 @@
|
|||||||
#
|
#
|
||||||
# Component Makefile
|
# Component Makefile
|
||||||
#
|
#
|
||||||
|
|
||||||
COMPONENT_ADD_LINKER_DEPS := $(COMPONENT_PATH) ld/esp32.peripherals.ld
|
|
||||||
COMPONENT_ADD_LDFLAGS := -T $(COMPONENT_PATH)/ld/esp32.peripherals.ld
|
|
||||||
|
@ -11,5 +11,3 @@ endif()
|
|||||||
|
|
||||||
idf_component_register(REQUIRES riscv "${legacy_reqs}"
|
idf_component_register(REQUIRES riscv "${legacy_reqs}"
|
||||||
REQUIRED_IDF_TARGETS esp32c3)
|
REQUIRED_IDF_TARGETS esp32c3)
|
||||||
|
|
||||||
target_linker_script(${COMPONENT_LIB} INTERFACE "ld/esp32c3.peripherals.ld")
|
|
||||||
|
@ -11,5 +11,3 @@ endif()
|
|||||||
|
|
||||||
idf_component_register(REQUIRES riscv "${legacy_reqs}"
|
idf_component_register(REQUIRES riscv "${legacy_reqs}"
|
||||||
REQUIRED_IDF_TARGETS esp32h2)
|
REQUIRED_IDF_TARGETS esp32h2)
|
||||||
|
|
||||||
target_linker_script(${COMPONENT_LIB} INTERFACE "ld/esp32h2.peripherals.ld")
|
|
||||||
|
@ -11,5 +11,3 @@ endif()
|
|||||||
|
|
||||||
idf_component_register(REQUIRES xtensa "${legacy_reqs}"
|
idf_component_register(REQUIRES xtensa "${legacy_reqs}"
|
||||||
REQUIRED_IDF_TARGETS esp32s2)
|
REQUIRED_IDF_TARGETS esp32s2)
|
||||||
|
|
||||||
target_linker_script(${COMPONENT_LIB} INTERFACE "ld/esp32s2.peripherals.ld")
|
|
||||||
|
@ -11,5 +11,3 @@ endif()
|
|||||||
|
|
||||||
idf_component_register(REQUIRES xtensa "${legacy_reqs}"
|
idf_component_register(REQUIRES xtensa "${legacy_reqs}"
|
||||||
REQUIRED_IDF_TARGETS esp32s3)
|
REQUIRED_IDF_TARGETS esp32s3)
|
||||||
|
|
||||||
target_linker_script(${COMPONENT_LIB} INTERFACE "ld/esp32s3.peripherals.ld")
|
|
||||||
|
@ -6,3 +6,5 @@ idf_component_register(SRCS "lldesc.c"
|
|||||||
|
|
||||||
idf_build_get_property(target IDF_TARGET)
|
idf_build_get_property(target IDF_TARGET)
|
||||||
add_subdirectory(${target})
|
add_subdirectory(${target})
|
||||||
|
|
||||||
|
target_linker_script(${COMPONENT_LIB} INTERFACE "${target}/ld/${target}.peripherals.ld")
|
||||||
|
@ -1,4 +1,7 @@
|
|||||||
COMPONENT_SRCDIRS := . $(IDF_TARGET)
|
COMPONENT_SRCDIRS := . $(IDF_TARGET)
|
||||||
COMPONENT_ADD_INCLUDEDIRS := include $(IDF_TARGET) $(IDF_TARGET)/include
|
COMPONENT_ADD_INCLUDEDIRS := include $(IDF_TARGET) $(IDF_TARGET)/include
|
||||||
|
|
||||||
|
COMPONENT_ADD_LINKER_DEPS += $(COMPONENT_PATH) esp32/ld/esp32.peripherals.ld
|
||||||
|
COMPONENT_ADD_LDFLAGS += -T $(COMPONENT_PATH)/esp32/ld/esp32.peripherals.ld
|
||||||
|
|
||||||
COMPONENT_ADD_LDFRAGMENTS += linker.lf
|
COMPONENT_ADD_LDFRAGMENTS += linker.lf
|
||||||
|
Loading…
x
Reference in New Issue
Block a user