build system: add 'linux' component to common requirements

'linux' component provides some of the common header files, such as
'sys/queue.h' and 'sys/lock.h'. For chip targets, it is possible to
include these files without having to add any extra requirements.
With this change, the same behavior will apply for the linux target.
pull/9620/head
Ivan Grokhotkov 2022-08-19 08:14:59 +02:00
rodzic 5573d1395b
commit d5973b8b14
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 1E050E141B280628
2 zmienionych plików z 2 dodań i 2 usunięć

Wyświetl plik

@ -8,7 +8,7 @@ if(${target} STREQUAL "linux")
idf_component_register(SRCS "${srcs}"
INCLUDE_DIRS include ${hal_dir}/include ${bootloader_support_dir}/include
PRIV_INCLUDE_DIRS include/spi_flash
PRIV_REQUIRES linux partition_table)
PRIV_REQUIRES partition_table)
return()
endif()

Wyświetl plik

@ -206,7 +206,7 @@ function(__build_init idf_path)
endforeach()
if("${target}" STREQUAL "linux")
set(requires_common freertos log esp_rom esp_common)
set(requires_common freertos log esp_rom esp_common linux)
idf_build_set_property(__COMPONENT_REQUIRES_COMMON "${requires_common}")
else()
# Set components required by all other components in the build