mirror of
https://github.com/espressif/esp-idf.git
synced 2025-08-05 05:34:32 +02:00
esp_common: Add support for linux target providing header only library
This commit is contained in:
@@ -1,5 +1,11 @@
|
|||||||
idf_build_get_property(target IDF_TARGET)
|
idf_build_get_property(target IDF_TARGET)
|
||||||
|
|
||||||
|
if(${target} STREQUAL "linux")
|
||||||
|
# Header only library for linux
|
||||||
|
idf_component_register(INCLUDE_DIRS include)
|
||||||
|
return()
|
||||||
|
endif()
|
||||||
|
|
||||||
list(APPEND srcs "src/esp_err_to_name.c")
|
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.
|
||||||
|
@@ -1,6 +1,8 @@
|
|||||||
#
|
#
|
||||||
# Warn if the toolchain version doesn't match
|
# Warn if the toolchain version doesn't match
|
||||||
#
|
#
|
||||||
get_expected_ctng_version(expected_toolchain expected_gcc)
|
if(NOT ${target} STREQUAL "linux")
|
||||||
gcc_version_check("${expected_gcc}")
|
get_expected_ctng_version(expected_toolchain expected_gcc)
|
||||||
crosstool_version_check("${expected_toolchain}")
|
gcc_version_check("${expected_gcc}")
|
||||||
|
crosstool_version_check("${expected_toolchain}")
|
||||||
|
endif()
|
||||||
|
Reference in New Issue
Block a user