refactor(ulp): select ULP architecture component as common component

The subproject knows which architecture it builds for, so a ULP program names
only its own dependencies.
This commit is contained in:
Sudeep Mohanty
2026-09-02 09:12:14 +02:00
parent cb2b2f9b78
commit 53ea9b200e
10 changed files with 19 additions and 19 deletions

View File

@@ -1,2 +1 @@
idf_component_register(SRCS "main.S"
REQUIRES ulp_fsm)
idf_component_register(SRCS "main.S")

View File

@@ -1,2 +1 @@
idf_component_register(SRCS "main.c"
REQUIRES ulp_riscv)
idf_component_register(SRCS "main.c")

View File

@@ -1,2 +1 @@
idf_component_register(SRCS "wake_up.S"
REQUIRES ulp_fsm)
idf_component_register(SRCS "wake_up.S")

View File

@@ -2,7 +2,7 @@ set(srcs
"counter.S")
idf_component_register(SRCS ${srcs}
REQUIRES ulp_fsm ulp_wake
REQUIRES ulp_wake
LDFRAGMENTS "ulp_fsm_sections.lf")
target_compile_definitions(${COMPONENT_LIB} PRIVATE ULP_BUILD_SYSTEM_FSM_EXAMPLE=1)

View File

@@ -1,5 +1,5 @@
idf_component_register(SRCS "main.c"
REQUIRES lp_core ulp_sum ulp_math)
REQUIRES ulp_sum ulp_math)
# Linker script template processed by ldgen. The mapping[ulp_math_fast]
# marker is resolved using the .lf fragment from the ulp_math component.

View File

@@ -1,2 +1 @@
idf_component_register(SRCS "main.c"
REQUIRES lp_core)
idf_component_register(SRCS "main.c")

View File

@@ -1,2 +1 @@
idf_component_register(SRCS "main.c"
REQUIRES lp_core)
idf_component_register(SRCS "main.c")

View File

@@ -1,5 +1,4 @@
idf_component_register(SRCS "main.c"
REQUIRES ulp_riscv
LDFRAGMENTS "ulp_riscv_sections.lf")
# Supplementary linker script template processed by ldgen. The mapping marker