From patchwork Thu May 30 13:57:40 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabio Porcedda X-Patchwork-Id: 247610 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from silver.osuosl.org (silver.osuosl.org [140.211.166.136]) by ozlabs.org (Postfix) with ESMTP id 666D12C0098 for ; Thu, 30 May 2013 23:57:58 +1000 (EST) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id 9871E320DC; Thu, 30 May 2013 13:57:56 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from silver.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id o12R24NwE95m; Thu, 30 May 2013 13:57:51 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by silver.osuosl.org (Postfix) with ESMTP id 73B693211D; Thu, 30 May 2013 13:57:50 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from whitealder.osuosl.org (whitealder.osuosl.org [140.211.166.138]) by ash.osuosl.org (Postfix) with ESMTP id DA63D8F7A2 for ; Thu, 30 May 2013 13:57:55 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 14BEA8F445 for ; Thu, 30 May 2013 13:57:49 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id qI2+1q4h0dcj for ; Thu, 30 May 2013 13:57:48 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-pb0-f48.google.com (mail-pb0-f48.google.com [209.85.160.48]) by whitealder.osuosl.org (Postfix) with ESMTPS id 6E7EF8ED1E for ; Thu, 30 May 2013 13:57:48 +0000 (UTC) Received: by mail-pb0-f48.google.com with SMTP id md4so397515pbc.7 for ; Thu, 30 May 2013 06:57:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:subject:date:message-id:x-mailer; bh=XoxxtGi8tFLMMdKZn9bD2tcRBjliDUFDPEH0U5pZnao=; b=ujkWbStIcfBPsVym2l01iy7qVXRrlSwJmeytp2U+KboqvFUEJNa4TOT/2GtoC2yAtm +HCCzfK6SVQLmI4cd9QKu7NCtbibw351uU3dWjdOt1nrmnJH24bpXKCmHRrOg6Xh4STv f3KtV2vPKVustPWWC4H8Xu8L23HkHJa2PAgdU+rVAMJFhNOt34rZrJuf3n5UeibozCaq NRKfXS7Am0m/49cMzJU0CsHCA9+s643RrswBPDnRwf+3H6sn1WLNI5IhDP0ko0B1KIqv 5yF2s6EZlrf2anms3eAhvQ64rx8ljortbZCphPEl97oHmAQUN69HxD0Q5ox6chjLKuLE gRyw== X-Received: by 10.68.202.99 with SMTP id kh3mr8042538pbc.74.1369922267685; Thu, 30 May 2013 06:57:47 -0700 (PDT) Received: from ld2036.tmt.telital.com.com ([213.205.6.118]) by mx.google.com with ESMTPSA id qi1sm44938589pac.21.2013.05.30.06.57.45 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Thu, 30 May 2013 06:57:47 -0700 (PDT) From: Fabio Porcedda To: buildroot@uclibc.org Date: Thu, 30 May 2013 15:57:40 +0200 Message-Id: <1369922260-8237-1-git-send-email-fabio.porcedda@gmail.com> X-Mailer: git-send-email 1.8.1.4 Subject: [Buildroot] [PATCH] Makefile: defconfig: use BR2_DEFCONFIG only when the file exists X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.14 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: buildroot-bounces@busybox.net Sender: buildroot-bounces@busybox.net This is to be able to use "make defconfig" even when BR2_DEFCONFIG has a filename that does not exist or use the default value that does not exists. Example on a clean installation, without a "./defconfig": make defconfig make defconfig Signed-off-by: Fabio Porcedda --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index e8647d1..57bf8b3 100644 --- a/Makefile +++ b/Makefile @@ -698,7 +698,7 @@ olddefconfig: $(BUILD_DIR)/buildroot-config/conf outputmakefile defconfig: $(BUILD_DIR)/buildroot-config/conf outputmakefile @mkdir -p $(BUILD_DIR)/buildroot-config - @$(COMMON_CONFIG_ENV) $< --defconfig$(if $(DEFCONFIG),=$(DEFCONFIG)) $(CONFIG_CONFIG_IN) + @$(COMMON_CONFIG_ENV) $< --defconfig$(if $(wildcard $(DEFCONFIG)),=$(DEFCONFIG)) $(CONFIG_CONFIG_IN) %_defconfig: $(BUILD_DIR)/buildroot-config/conf $(TOPDIR)/configs/%_defconfig outputmakefile @mkdir -p $(BUILD_DIR)/buildroot-config