summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorBamvor Jian Zhang <bamvor.zhangjian@linaro.org>2016-01-08 15:27:34 +0800
committerShuah Khan <shuahkh@osg.samsung.com>2016-02-25 09:47:52 -0700
commit3d6dee7af7fe11c2cea3d9ae70faedf2987ccf96 (patch)
tree6f00799047b5d550ca2e73b981199e8b1b19074a /Makefile
parent8c749ce93ee69e789e46b3be98de9e0cbfcf8ed8 (diff)
downloadlinux-rpi-3d6dee7af7fe11c2cea3d9ae70faedf2987ccf96.tar.gz
linux-rpi-3d6dee7af7fe11c2cea3d9ae70faedf2987ccf96.tar.bz2
linux-rpi-3d6dee7af7fe11c2cea3d9ae70faedf2987ccf96.zip
Makefile: add kselftest-merge
Add kselftest-merge to enable the dependencies of kernel config for all the kselftest testcases. User should call it after create the kernel configuration(.config), eg: $ make kselftest-merge Signed-off-by: Bamvor Jian Zhang <bamvor.zhangjian@linaro.org> Signed-off-by: Shuah Khan <shuahkh@osg.samsung.com>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile10
1 files changed, 10 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index c65fe37c99e5..42e3d1e111bb 100644
--- a/Makefile
+++ b/Makefile
@@ -1087,6 +1087,14 @@ kselftest:
kselftest-clean:
$(Q)$(MAKE) -C tools/testing/selftests 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)$(MAKE) -f $(srctree)/Makefile olddefconfig
+
# ---------------------------------------------------------------------------
# Modules
@@ -1295,6 +1303,8 @@ help:
@echo ' Build, install, and boot kernel before'
@echo ' running kselftest on it'
@echo ' kselftest-clean - Remove all generated kselftest files'
+ @echo ' kselftest-merge - Merge all the config dependencies of kselftest to existed'
+ @echo ' .config.'
@echo ''
@echo 'Kernel packaging:'
@$(MAKE) $(build)=$(package-dir) help