From: Bamvor Jian Zhang <bamvor.zhangjian@linaro.org>
To: linux-api@vger.kernel.org
Cc: linux-kernel@vger.kernel.org, shuahkh@osg.samsung.com,
khilman@linaro.org, tyler.baker@linaro.org, broonie@kernel.org,
mpe@ellerman.id.au, dvhart@infradead.org,
Bamvor Jian Zhang <bamvor.zhangjian@linaro.org>
Subject: [PATCH V2 2/2] scripts/kconfig/Makefile: add kselftest-mergeconfig
Date: Tue, 17 Nov 2015 22:34:17 +0800 [thread overview]
Message-ID: <1447770857-9883-3-git-send-email-bamvor.zhangjian@linaro.org> (raw)
In-Reply-To: <1447770857-9883-1-git-send-email-bamvor.zhangjian@linaro.org>
Add kselftest-mergeconfig to enable the dependencies of kernel
config for all the kselftest testcases. User could call it after
create the kernel configuration(.config), eg:
$ make kselftest-mergeconfig
Signed-off-by: Bamvor Jian Zhang <bamvor.zhangjian@linaro.org>
---
scripts/kconfig/Makefile | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/scripts/kconfig/Makefile b/scripts/kconfig/Makefile
index d79cba4..5896092 100644
--- a/scripts/kconfig/Makefile
+++ b/scripts/kconfig/Makefile
@@ -126,6 +126,14 @@ PHONY += tinyconfig
tinyconfig:
$(Q)$(MAKE) -f $(srctree)/Makefile allnoconfig tiny.config
+PHONY += kselftest-mergeconfig
+kselftest-mergeconfig: $(obj)/conf
+ $(if $(wildcard $(srctree)/.config),, $(error No .config exists, config your kernel first!))
+ $(Q)$(CONFIG_SHELL) $(srctree)/scripts/kconfig/merge_config.sh \
+ -m -O $(objtree) $(srctree)/.config \
+ $(srctree)/tools/testing/selftests/*/config
+ +$(Q)$(MAKE) -f $(srctree)/Makefile olddefconfig
+
# Help text used by make help
help:
@echo ' config - Update current config utilising a line-oriented program'
@@ -151,6 +159,7 @@ help:
@echo ' kvmconfig - Enable additional options for kvm guest kernel support'
@echo ' xenconfig - Enable additional options for xen dom0 and guest kernel support'
@echo ' tinyconfig - Configure the tiniest possible kernel'
+ @echo ' kselftest-mergeconfig - Merge all the config dependencies of kselftest to .config'
# lxdialog stuff
check-lxdialog := $(srctree)/$(src)/lxdialog/check-lxdialog.sh
--
1.8.4.5
next prev parent reply other threads:[~2015-11-17 14:34 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-11-17 14:34 [PATCH V2 0/2] Create specific kconfig for kselftest Bamvor Jian Zhang
2015-11-17 14:34 ` [PATCH V2 1/2] selftests: create test-specific kconfig fragments Bamvor Jian Zhang
2015-11-17 14:34 ` Bamvor Jian Zhang [this message]
[not found] ` <1447770857-9883-1-git-send-email-bamvor.zhangjian-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org>
2015-11-23 20:35 ` [PATCH V2 0/2] Create specific kconfig for kselftest Shuah Khan
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1447770857-9883-3-git-send-email-bamvor.zhangjian@linaro.org \
--to=bamvor.zhangjian@linaro.org \
--cc=broonie@kernel.org \
--cc=dvhart@infradead.org \
--cc=khilman@linaro.org \
--cc=linux-api@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mpe@ellerman.id.au \
--cc=shuahkh@osg.samsung.com \
--cc=tyler.baker@linaro.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).