zephyr/cmake/modules
Daniel Leung 80e78208e6 kernel: syscalls: no need to include all syscalls in binary
The syscall generation phase parses all header files to look
for potential syscalls, and emits all the relevant files to
enable syscalls. However, this results in all the syscall
marshalling functions being included in the final binary.
This is due to these functions being referred to inside
the dispatch list, resulting in ineffective garbage
collection during linking. Previous commits allows each
drivers and subsystems to specify which header files
containing syscalls are relevant. So this commit changes
the syscall generation to only include the syscalls needed
for the build in the syscall dispatch list and removing
various bits related to that. This allows the linker to
garbage collect unused syscall related function, and thus
reducing final binary size.

Signed-off-by: Daniel Leung <daniel.leung@intel.com>
2023-06-17 07:57:45 -04:00
..
FindBabbleSim.cmake
FindDeprecated.cmake
FindDtc.cmake
FindGnuLd.cmake
FindHostTools.cmake
FindLlvmLld.cmake
FindScaTools.cmake
FindTargetTools.cmake
FindZephyr-sdk.cmake ARC: MWDT: rework GNU helper tools usage 2023-06-17 07:44:31 -04:00
Findarmclang.cmake
FindoneApi.cmake
arch.cmake
basic_settings.cmake
boards.cmake
ccache.cmake
configuration_files.cmake cmake: support snippets scope for `zephyr_get()` 2023-05-25 13:31:53 +00:00
doc.cmake
dts.cmake cmake: introduce EXTRA_DTC_OVERLAY_FILE for devicetree 2023-05-23 16:40:21 +02:00
extensions.cmake kernel: syscalls: no need to include all syscalls in binary 2023-06-17 07:57:45 -04:00
generated_file_directories.cmake
kconfig.cmake kconfig: provide an option for enforcing Kconfig settings 2023-05-25 14:57:41 +02:00
kernel.cmake
pre_dt.cmake
python.cmake
root.cmake cmake: boards: Fix issue with relative paths 2023-06-15 05:10:42 -04:00
shields.cmake
snippets.cmake cmake: support snippets scope for `zephyr_get()` 2023-05-25 13:31:53 +00:00
soc.cmake
unittest.cmake
user_cache.cmake cmake: Fix USER_CACHE_DIR path generation 2023-05-10 15:27:54 +02:00
version.cmake cmake: generalize VERSION infrastructure for better reuse 2023-05-17 13:56:58 +02:00
west.cmake west.cmake: make MIN_WEST_VERSION catch up with requirements-base.txt 2023-05-22 10:17:11 +02:00
zephyr_default.cmake
zephyr_module.cmake cmake: align Zephyr module variable to EXTRA_ZEPHYR_MODULES 2023-05-23 16:40:21 +02:00