build system: add WHOLE_ARCHIVE component property

This component property allows including all component object files
into the executable. It is equivalent to wrapping the component
library with -Wl,--whole-archive and -Wl,--no-whole-archive flags.

Closes https://github.com/espressif/esp-idf/issues/8667
This commit is contained in:
Ivan Grokhotkov
2022-03-30 00:42:32 +02:00
parent 86e5ff1e64
commit 273633ee31
4 changed files with 21 additions and 4 deletions
@@ -66,7 +66,7 @@ macro(idf_component_mock)
endmacro()
macro(idf_component_register)
set(options)
set(options WHOLE_ARCHIVE)
set(single_value KCONFIG KCONFIG_PROJBUILD)
set(multi_value SRCS SRC_DIRS EXCLUDE_SRCS
INCLUDE_DIRS PRIV_INCLUDE_DIRS LDFRAGMENTS REQUIRES