|
@@ -1,9 +1,11 @@
|
|
|
idf_build_get_property(target IDF_TARGET)
|
|
idf_build_get_property(target IDF_TARGET)
|
|
|
|
|
|
|
|
if(${target} STREQUAL "linux")
|
|
if(${target} STREQUAL "linux")
|
|
|
- # Header only library for linux
|
|
|
|
|
- idf_component_register(INCLUDE_DIRS include)
|
|
|
|
|
- return()
|
|
|
|
|
|
|
+ set(ldfragments)
|
|
|
|
|
+ set(srcs "src/esp_err_check_linux.c")
|
|
|
|
|
+else()
|
|
|
|
|
+ set(ldfragments common.lf soc.lf)
|
|
|
|
|
+ set(srcs)
|
|
|
endif()
|
|
endif()
|
|
|
|
|
|
|
|
list(APPEND srcs "src/esp_err_to_name.c")
|
|
list(APPEND srcs "src/esp_err_to_name.c")
|
|
@@ -11,7 +13,7 @@ list(APPEND srcs "src/esp_err_to_name.c")
|
|
|
# Note: esp_ipc, esp_pm added as a public requirement to keep compatibility as to be located here.
|
|
# Note: esp_ipc, esp_pm added as a public requirement to keep compatibility as to be located here.
|
|
|
idf_component_register(SRCS "${srcs}"
|
|
idf_component_register(SRCS "${srcs}"
|
|
|
INCLUDE_DIRS include
|
|
INCLUDE_DIRS include
|
|
|
- LDFRAGMENTS "common.lf" "soc.lf")
|
|
|
|
|
|
|
+ LDFRAGMENTS ${ldfragments})
|
|
|
|
|
|
|
|
set_property(TARGET ${COMPONENT_LIB} APPEND PROPERTY LINK_INTERFACE_MULTIPLICITY 4)
|
|
set_property(TARGET ${COMPONENT_LIB} APPEND PROPERTY LINK_INTERFACE_MULTIPLICITY 4)
|
|
|
|
|
|