From: Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
To: linux-arm-kernel@lists.infradead.org
Cc: linux-kernel@vger.kernel.org, Arnd Bergmann <arnd@arndb.de>,
Olof Johansson <olof@lixom.net>,
Russell King <linux@arm.linux.org.uk>,
b.zolnierkie@samsung.com, Cyril Bur <cyrilbur@gmail.com>
Subject: [RFC PATCH 01/23] arm: add kconfig fragments support
Date: Tue, 06 Dec 2016 13:38:36 +0100 [thread overview]
Message-ID: <1481027938-31831-2-git-send-email-b.zolnierkie@samsung.com> (raw)
In-Reply-To: <1481027938-31831-1-git-send-email-b.zolnierkie@samsung.com>
Add support for generating defconfigs from kconfig fragments.
This is based on changes to arch/powerpc/Makefile from
commit ea4d1a87e6de ("powerpc/configs: Replace pseries_le_defconfig
with a Makefile target using merge_config") by Cyril Bur.
Cc: Cyril Bur <cyrilbur@gmail.com>
Signed-off-by: Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
---
arch/arm/Makefile | 11 +++++++++++
1 file changed, 11 insertions(+)
diff --git a/arch/arm/Makefile b/arch/arm/Makefile
index 6be9ee1..f2c0683 100644
--- a/arch/arm/Makefile
+++ b/arch/arm/Makefile
@@ -343,6 +343,17 @@ dtbs: prepare scripts
dtbs_install:
$(Q)$(MAKE) $(dtbinst)=$(boot)/dts
+# Used to create 'merged defconfigs'
+# To use it $(call) it with the first argument as the base defconfig
+# and the second argument as a space separated list of .config files to merge,
+# without the .config suffix.
+define merge_into_defconfig
+ $(Q)$(CONFIG_SHELL) $(srctree)/scripts/kconfig/merge_config.sh \
+ -m -O $(objtree) $(srctree)/arch/$(ARCH)/configs/$(1) \
+ $(foreach config,$(2),$(srctree)/arch/$(ARCH)/configs/$(config).config)
+ +$(Q)$(MAKE) -f $(srctree)/Makefile olddefconfig
+endef
+
PHONY += vdso_install
vdso_install:
ifeq ($(CONFIG_VDSO),y)
--
1.9.1
next prev parent reply other threads:[~2016-12-06 12:40 UTC|newest]
Thread overview: 34+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-12-06 12:38 [RFC PATCH 00/23] arm: defconfigs: use kconfig fragments Bartlomiej Zolnierkiewicz
2016-12-06 12:38 ` Bartlomiej Zolnierkiewicz [this message]
2016-12-06 12:38 ` [RFC PATCH 02/23] arm: use kconfig fragments for ARCH_ASPEED defconfigs Bartlomiej Zolnierkiewicz
2016-12-06 12:38 ` [RFC PATCH 03/23] arm: update defconfigs for ARCH_KS8695 Bartlomiej Zolnierkiewicz
2016-12-06 12:38 ` [RFC PATCH 04/23] arm: use kconfig fragments for ARCH_ASPEED defconfigs Bartlomiej Zolnierkiewicz
2016-12-06 13:22 ` Baruch Siach
2016-12-06 12:38 ` [RFC PATCH 05/23] arm: update defconfigs for ARCH_MMP Bartlomiej Zolnierkiewicz
2016-12-06 12:38 ` [RFC PATCH 06/23] arm: use kconfig fragments for ARCH_ASPEED defconfigs Bartlomiej Zolnierkiewicz
2016-12-06 12:38 ` [RFC PATCH 07/23] arm: update defconfigs for PLAT_SPEAR Bartlomiej Zolnierkiewicz
2016-12-06 12:38 ` [RFC PATCH 08/23] arm: use kconfig fragments for PLAT_SPEAR defconfigs Bartlomiej Zolnierkiewicz
2016-12-06 12:38 ` [RFC PATCH 09/23] arm: update defconfigs for ARCH_W90X900 Bartlomiej Zolnierkiewicz
2016-12-06 12:38 ` [RFC PATCH 10/23] arm: use kconfig fragments for ARCH_W90X900 defconfigs Bartlomiej Zolnierkiewicz
2016-12-06 12:38 ` [RFC PATCH 11/23] arm: update mainstone_defconfig Bartlomiej Zolnierkiewicz
2016-12-06 12:38 ` [RFC PATCH 12/23] arm: update lubbock_defconfig Bartlomiej Zolnierkiewicz
2016-12-06 12:38 ` [RFC PATCH 13/23] arm: update pxa255-idp_defconfig Bartlomiej Zolnierkiewicz
2016-12-06 12:38 ` [RFC PATCH 14/23] arm: update lpd270_defconfig Bartlomiej Zolnierkiewicz
2016-12-06 12:38 ` [RFC PATCH 15/23] arm: use kconfig fragments for ARCH_PXA defconfigs (part 1) Bartlomiej Zolnierkiewicz
2016-12-10 9:46 ` Robert Jarzmik
2016-12-12 12:11 ` Bartlomiej Zolnierkiewicz
2016-12-06 12:38 ` [RFC PATCH 16/23] arm: update corgi_defconfig Bartlomiej Zolnierkiewicz
2016-12-06 12:38 ` [RFC PATCH 17/23] arm: update spitz_defconfig Bartlomiej Zolnierkiewicz
2016-12-06 12:38 ` [RFC PATCH 18/23] arm: use kconfig fragments for ARCH_PXA defconfigs (part 2) Bartlomiej Zolnierkiewicz
2016-12-06 12:38 ` [RFC PATCH 19/23] arm: update ezx_defconfig Bartlomiej Zolnierkiewicz
2016-12-06 12:38 ` [RFC PATCH 20/23] arm: imote2_defconfig Bartlomiej Zolnierkiewicz
2016-12-06 12:38 ` [RFC PATCH 21/23] arm: use kconfig fragments for ARCH_PXA defconfigs (part 3) Bartlomiej Zolnierkiewicz
2016-12-06 19:03 ` [RFC PATCH 00/23] arm: defconfigs: use kconfig fragments Olof Johansson
2016-12-07 11:41 ` Bartlomiej Zolnierkiewicz
2016-12-07 21:07 ` Arnd Bergmann
2016-12-07 21:14 ` Olof Johansson
2016-12-07 21:35 ` Arnd Bergmann
2016-12-07 21:56 ` Laura Abbott
2016-12-07 22:21 ` Olof Johansson
[not found] ` <1481027938-31831-24-git-send-email-b.zolnierkie@samsung.com>
2016-12-06 19:49 ` [RFC PATCH 23/23] arm: use kconfig fragments for tegra_defconfig/multi_v7_defconfig Olof Johansson
2016-12-13 8:08 ` [RFC PATCH 00/23] arm: defconfigs: use kconfig fragments Uwe Kleine-König
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=1481027938-31831-2-git-send-email-b.zolnierkie@samsung.com \
--to=b.zolnierkie@samsung.com \
--cc=arnd@arndb.de \
--cc=cyrilbur@gmail.com \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux@arm.linux.org.uk \
--cc=olof@lixom.net \
/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).