zephyr/scripts
Marc Herbert c7633de038 sanitycheck: fix priority of --extra-args=CONFIG_ over testcase.yaml
sanitycheck takes any "extra_config" list found in the testcase.yaml
file and generates an "overlay" file from it. This file is placed in
the per-test build directory and passed to cmake/kconfig.cmake through a
-DOVERLAY_CONF= option set in the (also) generated sanity-out/Makefile.

This commit moves this generated config overlay to a subdirectory one
level down from the build directory, otherwise kconfig.cmake picks it
up *twice*: once from the -DOVERLAY_CONF= option already mentioned above
and a second time because kconfig.cmake scans the build directory and
blindly picks up ALL files ending with .conf[*]. The second pickup is
problematic because kconfig.cmake currently gives it the top precedence,
even higher than anything the user espressed with --extra-args=CONFIG_*

Here's a quick and simple demonstration of the issue fixed by this
commit:

  cd $ZEPHYR_BASE/samples/net/sockets/net_mgmt/
  sanitycheck -T. -p qemu_x86 -b -v # --extra-args=CONFIG_USERSPACE=y|n
  grep CONFIG_USERSPACE $(find sanity-out/ -name .config)

  .net_mgmt.kernelmode/zephyr/.config: # CONFIG_USERSPACE is not set
    .net_mgmt.usermode/zephyr/.config: CONFIG_USERSPACE=y

  grep 'Merged configuration' $(find sanity-out/ -name build.log)

Without this commit, attemps to override anything with
--extra-args=CONFIG_ are silently dropped on the floor.

For more background this issue was found while using the recipe in
commit message 4afcc0f8af

[*] picking up all .conf files is debatable but a much bigger debate
with backward compatibility implications. This small fix makes
absolutely zero difference to anyone or anything not using sanitycheck.

Signed-off-by: Marc Herbert <marc.herbert@intel.com>
2019-07-09 19:16:30 -07:00
..
checkpatch
ci ci: increase sleep time between sanitycheck runs 2019-06-20 22:15:27 +02:00
coccinelle scripts/coccinelle: Add script for counting identifier length 2019-04-18 12:29:07 -04:00
dts scripts: dts: Add extraction of clock frequency for fixed clock 2019-06-28 09:45:35 -05:00
footprint size_report: Don't crash when observing stripped symbols 2019-07-05 14:18:49 -04:00
gitlint license: cleanup: add SPDX Apache-2.0 license identifier 2019-04-07 08:45:22 -04:00
kconfig genrest: De-spam docs by skipping direct deps. in more places 2019-06-24 12:14:06 -07:00
sanity_chk sanitycheck harness: Correct ordered regex handling 2019-06-19 14:37:20 -04:00
support license: cleanup: add SPDX Apache-2.0 license identifier 2019-04-07 08:45:22 -04:00
west_commands west: runners: Guess build folder 2019-06-26 11:50:26 -04:00
.gitignore
check_link_map.py scripts: Fix risky uses of non-raw regex strings in Python scripts 2019-03-28 14:41:32 -05:00
checkpatch.pl dts: import vendor-prefixes.txt from linux kernel 2019-05-22 12:40:20 -04:00
checkstack.pl
coccicheck docs: fix misspelling across the tree 2019-06-19 15:34:13 -05:00
dir_is_writeable.py license: cleanup: add SPDX Apache-2.0 license identifier 2019-04-07 08:45:22 -04:00
elf_helper.py scripts: elf_helper: correct kernel object address check range 2019-07-08 13:28:13 -07:00
file2hex.py file2hex.py: new --gzip-mtime option that defaults to zero + test 2019-04-17 08:27:40 -04:00
filter-known-issues.py docs: fix misspelling across the tree 2019-06-19 15:34:13 -05:00
gen_app_partitions.py gen_app_partitions: deterministic _and_ decreasing app_smem_*.ld 2019-06-27 18:06:30 -07:00
gen_cfb_font_header.py generated/cfb_font_dice.h: don't leak absolute paths in comment 2019-06-19 08:40:59 -04:00
gen_gcov_files.py scripts: gen_gcov_files: report if data capture is not complete 2019-01-29 15:03:38 -05:00
gen_kobject_list.py net: ptp: clock: Add usermode support to ptp_clock_get() 2019-06-25 15:22:51 +03:00
gen_offset_header.py
gen_priv_stacks.py scripts: gen_priv_stacks.py: use the right alignment for priv stacks 2019-06-24 10:16:57 -07:00
gen_relocate_app.py gen_relocate_app.py: make generated/linker_relocate.ld deterministic 2019-06-27 07:18:09 -04:00
gen_syscall_header.py scripts: Remove unnecessary () around if/while conditions in Python 2019-03-26 07:59:59 -05:00
gen_syscalls.py userspace: properly namespace handler functions 2019-03-18 09:23:11 -07:00
mergehex.py scripts: mergehex: Add --overlap argument 2019-05-16 07:16:55 -05:00
parse_syscalls.py userspace: add additional script documentation 2019-03-12 08:37:58 +01:00
process_gperf.py scripts: Remove unnecessary () around if/while conditions in Python 2019-03-26 07:59:59 -05:00
qemu-machine-hack.py license: cleanup: add SPDX Apache-2.0 license identifier 2019-04-07 08:45:22 -04:00
requirements.txt scripts: Upgrade pyocd for pack support 2019-06-18 23:03:35 -04:00
sanitycheck sanitycheck: fix priority of --extra-args=CONFIG_ over testcase.yaml 2019-07-09 19:16:30 -07:00
series-push-hook.sh scripts: fix path issue in push-hook script 2019-03-13 11:59:38 -05:00
spelling.txt
subfolder_list.py license: cleanup: add SPDX Apache-2.0 license identifier 2019-04-07 08:45:22 -04:00
tags.sh
valgrind.supp valgrind: Add error supression file for POSIX arch 2018-12-21 21:07:18 +01:00
waitpid
west-commands.yml west: Add completion command 2019-05-10 13:08:27 +02:00
zephyr_module.py cmake: zephyr_modules: Add west executable argument 2019-05-03 14:23:09 -04:00