Commit 6d3db46c authored by Dan Rue's avatar Dan Rue Committed by Masahiro Yamada

kbuild: teach kselftest-merge to find nested config files

Current implementation of kselftest-merge only finds config files that
are one level deep using `$(srctree)/tools/testing/selftests/*/config`.

Often, config files are added in nested directories, and do not get
picked up by kselftest-merge.

Use `find` to catch all config files under
`$(srctree)/tools/testing/selftests` instead.
Signed-off-by: default avatarDan Rue <dan.rue@linaro.org>
Signed-off-by: default avatarMasahiro Yamada <yamada.masahiro@socionext.com>
parent f2c7c76c
...@@ -1228,9 +1228,8 @@ kselftest-clean: ...@@ -1228,9 +1228,8 @@ kselftest-clean:
PHONY += kselftest-merge PHONY += kselftest-merge
kselftest-merge: kselftest-merge:
$(if $(wildcard $(objtree)/.config),, $(error No .config exists, config your kernel first!)) $(if $(wildcard $(objtree)/.config),, $(error No .config exists, config your kernel first!))
$(Q)$(CONFIG_SHELL) $(srctree)/scripts/kconfig/merge_config.sh \ $(Q)find $(srctree)/tools/testing/selftests -name config | \
-m $(objtree)/.config \ xargs $(srctree)/scripts/kconfig/merge_config.sh -m $(objtree)/.config
$(srctree)/tools/testing/selftests/*/config
+$(Q)$(MAKE) -f $(srctree)/Makefile olddefconfig +$(Q)$(MAKE) -f $(srctree)/Makefile olddefconfig
# --------------------------------------------------------------------------- # ---------------------------------------------------------------------------
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment