From patchwork Tue Sep 14 03:50:09 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ben Hutchings X-Patchwork-Id: 178572 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter1.kernel.org (8.14.4/8.14.3) with ESMTP id o8E3oIkY009869 for ; Tue, 14 Sep 2010 03:50:18 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752200Ab0INDuS (ORCPT ); Mon, 13 Sep 2010 23:50:18 -0400 Received: from shadbolt.e.decadent.org.uk ([88.96.1.126]:57703 "EHLO shadbolt.e.decadent.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752177Ab0INDuR convert rfc822-to-8bit (ORCPT ); Mon, 13 Sep 2010 23:50:17 -0400 Received: from [192.168.4.185] (helo=localhost) by shadbolt.decadent.org.uk with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.69) (envelope-from ) id 1OvMX5-0001Tt-6U; Tue, 14 Sep 2010 04:50:11 +0100 Received: from ben by localhost with local (Exim 4.72) (envelope-from ) id 1OvMX3-0005bv-L6; Tue, 14 Sep 2010 04:50:09 +0100 From: Ben Hutchings To: Michal Marek Cc: maximilian attems , linux-kbuild@vger.kernel.org, Bastian Blank In-Reply-To: <4C8E3B15.2040807@suse.cz> References: <20100913143830.GK2919@stro.at> <4C8E3B15.2040807@suse.cz> Date: Tue, 14 Sep 2010 04:50:09 +0100 Message-ID: <1284436209.5323.744.camel@localhost> Mime-Version: 1.0 X-Mailer: Evolution 2.30.3 X-SA-Exim-Connect-IP: 192.168.4.185 X-SA-Exim-Mail-From: ben@decadent.org.uk X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on shadbolt.decadent.org.uk X-Spam-Level: X-Spam-Status: No, score=-1.4 required=5.0 tests=ALL_TRUSTED autolearn=disabled version=3.2.5 Subject: [PATCH 1/2] Kbuild: Treat KBUILD_DEFCONFIG=old as request to use .config as the base X-SA-Exim-Version: 4.2.1 (built Wed, 25 Jun 2008 17:14:11 +0000) X-SA-Exim-Scanned: Yes (on shadbolt.decadent.org.uk) Sender: linux-kbuild-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kbuild@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.3 (demeter1.kernel.org [140.211.167.41]); Tue, 14 Sep 2010 03:50:19 +0000 (UTC) diff --git a/scripts/kconfig/Makefile b/scripts/kconfig/Makefile index cef3f75..19558a7 100644 --- a/scripts/kconfig/Makefile +++ b/scripts/kconfig/Makefile @@ -112,9 +112,13 @@ defconfig: $(obj)/conf ifeq ($(KBUILD_DEFCONFIG),) $< --defconfig $(Kconfig) else +ifeq ($(KBUILD_DEFCONFIG),old) + $< --defconfig=.config $(Kconfig) +else @echo "*** Default configuration is based on '$(KBUILD_DEFCONFIG)'" $(Q)$< --defconfig=arch/$(SRCARCH)/configs/$(KBUILD_DEFCONFIG) $(Kconfig) endif +endif %_defconfig: $(obj)/conf $(Q)$< --defconfig=arch/$(SRCARCH)/configs/$@ $(Kconfig)