zephyr/cmake
Torsten Rasmussen 3d88083bf1 cmake: zephyr modules: sanitize all module name when used as variable
The introduction of Zephyr module glue code in the Zephyr repository
introduces a Kconfig variable in the form of:
`config ZEPHYR_<MODULE_NAME>_MODULE`.

All Kconfig variables go into `autoconf.h`, therefore it is necessary
to sanitize the Kconfig variable, so that it does not contain special
characters. To ensure consistent variable name, then the module name
will be sanitized in all variable use in both Kconfig and CMake.
The sanitization is done be replacing all special characters with an
underscore, `_`.

Signed-off-by: Torsten Rasmussen <Torsten.Rasmussen@nordicsemi.no>
2021-01-20 12:59:19 +01:00
..
app modules: introducing MODULE_EXT_ROOT to allow glue code in Zephyr repo 2021-01-18 18:02:46 +01:00
bintools bintools: append ; to > to ensure a space 2020-11-26 14:20:03 +01:00
compiler riscv: give -mcmodel=medany to GCC when linking 2021-01-15 13:06:33 -05:00
emu cmake: Fix unexpected token after & 2021-01-18 19:08:45 +01:00
flash cmake: flash signed binaries for mcuboot 2020-09-03 16:49:09 -05:00
ide
linker cmake: scripts: supporting gen_relocate_app feature in windows 2021-01-20 11:51:47 +01:00
makefile_exports cmake: using zephyr_get_compile_options_for_lang_as_string for export 2020-12-15 08:37:54 -05:00
reports scripts: size_report: Fix colorized output 2020-09-03 09:54:21 -04:00
toolchain xtensa: set toolchain variant per SoC 2020-12-20 14:30:50 -05:00
usage boards/shields: re-work handling in cmake and west 2021-01-15 15:07:49 -05:00
util
boards.cmake boards/shields: re-work handling in cmake and west 2021-01-15 15:07:49 -05:00
ccache.cmake
cfb.cmake cmake: using ${ZEPHYR_BASE} instead of $ENV{ZEPHYR_BASE} 2020-03-27 16:23:46 +01:00
dts.cmake devicetree: generate extern's for devicetree struct devices 2021-01-15 07:16:21 -06:00
extensions.cmake cmake: zephyr modules: sanitize all module name when used as variable 2021-01-20 12:59:19 +01:00
extra_flags.cmake cmake: extra_flags: fix EXTRA_CPPFLAGS being applied as macros 2019-12-13 13:23:40 -05:00
gcc-m-cpu.cmake arch: arm: Add Cortex-R7 support 2021-01-13 15:04:43 +01:00
generic_toolchain.cmake cmake: Ignore LDFLAGS and AFLAGS from environment 2020-09-10 15:35:50 -05:00
git.cmake
hex.cmake
host-tools.cmake cmake: add IMGTOOL optional dependency 2020-09-01 13:33:46 +02:00
kconfig.cmake cmake: zephyr modules: sanitize all module name when used as variable 2021-01-20 12:59:19 +01:00
kobj.cmake cmake: using ${ZEPHYR_BASE} instead of $ENV{ZEPHYR_BASE} 2020-03-27 16:23:46 +01:00
mcuboot.cmake cmake: mcuboot: confirmed images needs to be padded 2020-09-04 12:00:04 +02:00
pristine.cmake
python.cmake cmake: find python3 on windows when multiarch are installed 2020-05-13 12:13:36 +02:00
shields.cmake boards/shields: re-work handling in cmake and west 2021-01-15 15:07:49 -05:00
target_toolchain_flags.cmake cmake: use the toolchain path, id and version as extended signature. 2020-12-14 11:56:00 -05:00
target_toolchain.cmake cmake: use the toolchain path, id and version as extended signature. 2020-12-14 11:56:00 -05:00
version.cmake cmake: Added possibility to disable the printing of version 2020-03-27 16:23:46 +01:00
west.cmake cmake: add WEST to cached variable 2020-09-03 17:32:48 -04:00
zephyr_module.cmake cmake: zephyr modules: sanitize all module name when used as variable 2021-01-20 12:59:19 +01:00