From patchwork Tue Dec 6 12:38:36 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bartlomiej Zolnierkiewicz X-Patchwork-Id: 9462463 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 405DA6074E for ; Tue, 6 Dec 2016 12:42:05 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 358532838C for ; Tue, 6 Dec 2016 12:42:05 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 2A60228391; Tue, 6 Dec 2016 12:42:05 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.2 required=2.0 tests=BAYES_00, RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id ED5C62838D for ; Tue, 6 Dec 2016 12:42:03 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.85_2 #1 (Red Hat Linux)) id 1cEF2j-0002N5-PI; Tue, 06 Dec 2016 12:40:21 +0000 Received: from mailout3.samsung.com ([203.254.224.33]) by bombadil.infradead.org with esmtps (Exim 4.85_2 #1 (Red Hat Linux)) id 1cEF2I-0001Uh-LJ for linux-arm-kernel@lists.infradead.org; Tue, 06 Dec 2016 12:39:55 +0000 Received: from epcpsbgm2new.samsung.com (epcpsbgm2 [203.254.230.27]) by mailout3.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTP id <0OHR01XESKHW5P90@mailout3.samsung.com> for linux-arm-kernel@lists.infradead.org; Tue, 06 Dec 2016 21:39:32 +0900 (KST) X-AuditID: cbfee61b-f796f6d000004092-88-5846b18472d7 Received: from epmmp1.local.host ( [203.254.227.16]) by epcpsbgm2new.samsung.com (EPCPMTA) with SMTP id E2.D8.16530.481B6485; Tue, 6 Dec 2016 21:39:32 +0900 (KST) Received: from AMDC3058.DIGITAL.local ([106.120.53.102]) by mmp1.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTPA id <0OHR00KOOKH1JQ10@mmp1.samsung.com>; Tue, 06 Dec 2016 21:39:32 +0900 (KST) From: Bartlomiej Zolnierkiewicz To: linux-arm-kernel@lists.infradead.org Subject: [RFC PATCH 01/23] arm: add kconfig fragments support Date: Tue, 06 Dec 2016 13:38:36 +0100 Message-id: <1481027938-31831-2-git-send-email-b.zolnierkie@samsung.com> X-Mailer: git-send-email 1.9.1 In-reply-to: <1481027938-31831-1-git-send-email-b.zolnierkie@samsung.com> References: <1481027938-31831-1-git-send-email-b.zolnierkie@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFvrKLMWRmVeSWpSXmKPExsVy+t9jAd2WjW4RBu9bpC3+TjrGbrFxxnpW i+MXXrFbbHp8jdXi8q45bBa3L/NanLr+mc2B3aOluYfN4/evSYweO2fdZffYvKTe48qJJlaP vi2rGD0+b5ILYI9ys8lITUxJLVJIzUvOT8nMS7dVCg1x07VQUshLzE21VYrQ9Q0JUlIoS8wp BfKMDNCAg3OAe7CSvl2CW8b8eT3sBV85K2bv3cnSwLiFo4uRk0NCwETi+Ml3TBC2mMSFe+vZ uhi5OIQEljJKbJ5wlwUkISTwi1FiY78uiM0mYCUxsX0VI4gtIqAhMaXrMTtIA7PAUUaJ7T2n wBqEBWwl+jZ2soLYLAKqEk/O/mIGsXkFPCSOXL/CBrFNTuLksclgNZwCnhLXt6xhhFjmIbHz 6nf2CYy8CxgZVjFKpBYkFxQnpeca5aWW6xUn5haX5qXrJefnbmIEB/kz6R2Mh3e5H2IU4GBU 4uH1aHaNEGJNLCuuzD3EKMHBrCTCu36DW4QQb0piZVVqUX58UWlOavEhRlOgwyYyS4km5wMj MK8k3tDE3MTc2MDC3NLSxEhJnLdx9rNwIYH0xJLU7NTUgtQimD4mDk6pBsYZv4wWCYk7W2qn VBhGVExsbjzisyH1m61gbtsc34zUDEGDl53q0btqs4S3zmPbIGPNE8C/Oz6a+djNw9X7pCYs OxDlvf6/hZu0htyv6RNcUpLma2/mynkh9/Ic477/xru0hLpel/95dsxzVhPb5o5lWn8jlVSE mPac2VIscy4tSqRxWoA1jxJLcUaioRZzUXEiAPI0WYKIAgAA X-MTR: 20000000000000000@CPGS X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20161206_043954_881888_4FEE6E19 X-CRM114-Status: GOOD ( 11.18 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Russell King , Arnd Bergmann , b.zolnierkie@samsung.com, linux-kernel@vger.kernel.org, Olof Johansson , Cyril Bur MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP 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 Signed-off-by: Bartlomiej Zolnierkiewicz --- 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)