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>
This commit is contained in:
Родитель
8c749ce93e
Коммит
3d6dee7af7
10
Makefile
10
Makefile
|
@ -1087,6 +1087,14 @@ kselftest:
|
||||||
kselftest-clean:
|
kselftest-clean:
|
||||||
$(Q)$(MAKE) -C tools/testing/selftests 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
|
# Modules
|
||||||
|
|
||||||
|
@ -1295,6 +1303,8 @@ help:
|
||||||
@echo ' Build, install, and boot kernel before'
|
@echo ' Build, install, and boot kernel before'
|
||||||
@echo ' running kselftest on it'
|
@echo ' running kselftest on it'
|
||||||
@echo ' kselftest-clean - Remove all generated kselftest files'
|
@echo ' kselftest-clean - Remove all generated kselftest files'
|
||||||
|
@echo ' kselftest-merge - Merge all the config dependencies of kselftest to existed'
|
||||||
|
@echo ' .config.'
|
||||||
@echo ''
|
@echo ''
|
||||||
@echo 'Kernel packaging:'
|
@echo 'Kernel packaging:'
|
||||||
@$(MAKE) $(build)=$(package-dir) help
|
@$(MAKE) $(build)=$(package-dir) help
|
||||||
|
|
Загрузка…
Ссылка в новой задаче