]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
kbuild: teach kselftest-merge to find nested config files
authorDan Rue <dan.rue@linaro.org>
Mon, 20 May 2019 15:16:14 +0000 (10:16 -0500)
committerMasahiro Yamada <yamada.masahiro@socionext.com>
Tue, 4 Jun 2019 17:33:10 +0000 (02:33 +0900)
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: Dan Rue <dan.rue@linaro.org>
Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Makefile

index 004d67a4405f3640e7d8c54884a555e7a71c89a3..d27e1326cc0390325e461de305a32d095489f753 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1228,9 +1228,8 @@ kselftest-clean:
 PHONY += kselftest-merge
 kselftest-merge:
        $(if $(wildcard $(objtree)/.config),, $(error No .config exists, config your kernel first!))
-       $(Q)$(CONFIG_SHELL) $(srctree)/scripts/kconfig/merge_config.sh \
-               -m $(objtree)/.config \
-               $(srctree)/tools/testing/selftests/*/config
+       $(Q)find $(srctree)/tools/testing/selftests -name config | \
+               xargs $(srctree)/scripts/kconfig/merge_config.sh -m $(objtree)/.config
        +$(Q)$(MAKE) -f $(srctree)/Makefile olddefconfig
 
 # ---------------------------------------------------------------------------