Skip to content

Commit d249ae0

Browse files
committed
[nrf noup] ci: Add static entry for NRF Kconfig path
nrf-squash! [nrf noup] ci: set `ZEPHYR_<MODULE_NAME>_KCONFIG` for NCS modules Adds a static path for the NRF Kconfig variable in the check compliance script, this is a temporary workaround due to supporting an external root for NCS that should be reworked to use package helper in future Signed-off-by: Jamie McCrae <[email protected]>
1 parent 6c9cf79 commit d249ae0

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

scripts/ci/check_compliance.py

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -483,8 +483,22 @@ def get_modules(self, modules_file, sysbuild_modules_file, settings_file):
483483
re.sub('[^a-zA-Z0-9]', '_', module).upper(),
484484
modules_dir / module / 'Kconfig'
485485
))
486+
# Add NRF as static entry as workaround for ext Kconfig root support
487+
fp_module_file.write("ZEPHYR_NRF_KCONFIG = {}\n".format(
488+
nrf_modules_dir / '..' / 'Kconfig.nrf'
489+
))
486490
fp_module_file.write(content)
487491

492+
with open(sysbuild_modules_file, 'r') as fp_sysbuild_module_file:
493+
content = fp_sysbuild_module_file.read()
494+
495+
with open(sysbuild_modules_file, 'w') as fp_sysbuild_module_file:
496+
# Add NRF as static entry as workaround for ext Kconfig root support
497+
fp_sysbuild_module_file.write("SYSBUILD_NRF_KCONFIG = {}\n".format(
498+
nrf_modules_dir / '..' / 'sysbuild' / 'Kconfig.sysbuild'
499+
))
500+
fp_sysbuild_module_file.write(content)
501+
488502
def get_kconfig_dts(self, kconfig_dts_file, settings_file):
489503
"""
490504
Generate the Kconfig.dts using dts/bindings as the source.

0 commit comments

Comments
 (0)