From patchwork Tue Feb 4 14:12:28 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Jeremy Rosen X-Patchwork-Id: 316593 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from fraxinus.osuosl.org (fraxinus.osuosl.org [140.211.166.137]) by ozlabs.org (Postfix) with ESMTP id 5A5C92C0098 for ; Wed, 5 Feb 2014 01:12:45 +1100 (EST) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id 052F68BE08; Tue, 4 Feb 2014 14:12:44 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from fraxinus.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id AgQ-08Spx4VJ; Tue, 4 Feb 2014 14:12:40 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by fraxinus.osuosl.org (Postfix) with ESMTP id 850408BDA4; Tue, 4 Feb 2014 14:12:40 +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 139041BF94F for ; Tue, 4 Feb 2014 14:12:39 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 0CDC489427 for ; Tue, 4 Feb 2014 14:12:39 +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 mUX85ef1QiHe for ; Tue, 4 Feb 2014 14:12:38 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-we0-f175.google.com (mail-we0-f175.google.com [74.125.82.175]) by whitealder.osuosl.org (Postfix) with ESMTPS id CB52888AC7 for ; Tue, 4 Feb 2014 14:12:37 +0000 (UTC) Received: by mail-we0-f175.google.com with SMTP id q59so4198194wes.34 for ; Tue, 04 Feb 2014 06:12:36 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:to:cc:subject:date:message-id:mime-version:content-type :content-transfer-encoding; bh=gcQ0AC8Vj4YHD3GdR37kNPS9LtdGB+bX/CdyYU/zegc=; b=O6c3gxhuNKe4v/Vk1/A5TALyDEnwoSzORc7YX8jvmuUpswIeXisPjNDSG2Z9yWDBi+ sGK8+gROR6AltoIJwml9UG4/Tz+d0qBTprEdU90JN/0qhbmQ2eyCEjBaBTZ/SSCsGeaR ALaTLXMFatzp1wn6rOoBSZm0LS97R+v19DuYctQi9mAykMknJe8xd26ZI8qYsfqYQ80T +WovVW9UALHTbU26NRByojvmSRdm3gJ/Wy3z3OMgUbyp3rb01Mr7x/m5QReYZMezpQ9A bGJz+zO4RVH3E5C1GnABesYmETlIYKyXr9rV4s9L2f5DRPBQHQp6pNyTBIzMdQbc8JTN zLSA== X-Received: by 10.194.175.202 with SMTP id cc10mr2080330wjc.48.1391523156186; Tue, 04 Feb 2014 06:12:36 -0800 (PST) Received: from pcrosen.openwide.fr ([74.125.61.14]) by mx.google.com with ESMTPSA id z1sm53001526wjq.19.2014.02.04.06.12.34 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 04 Feb 2014 06:12:35 -0800 (PST) From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Rosen?= To: buildroot@busybox.net Date: Tue, 4 Feb 2014 15:12:28 +0100 Message-Id: <1391523148-30887-1-git-send-email-jeremy.rosen@openwide.fr> X-Mailer: git-send-email 1.8.5.3 MIME-Version: 1.0 Subject: [Buildroot] [PATCH] filter BR2_DEFCONFIG out of defconfig files 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: , Errors-To: buildroot-bounces@busybox.net Sender: buildroot-bounces@busybox.net When it is set, BR2_DEFCONFIG is saved like any config variable. However, at this point it is a completely expanded, absolute path It is not a good idea to save absolute paths in defconfig files moreover it makes little sense to save the defconfig location within the defconfig Signed-off-by: Jérémy Rosen --- Makefile | 1 + 1 file changed, 1 insertion(+) diff --git a/Makefile b/Makefile index 4a675d4..f63a058 100644 --- a/Makefile +++ b/Makefile @@ -772,6 +772,7 @@ savedefconfig: $(BUILD_DIR)/buildroot-config/conf outputmakefile @$(COMMON_CONFIG_ENV) $< \ --savedefconfig=$(if $(DEFCONFIG),$(DEFCONFIG),$(CONFIG_DIR)/defconfig) \ $(CONFIG_CONFIG_IN) + sed -i '/^BR2_DEFCONFIG=/d' $(DEFCONFIG) # check if download URLs are outdated source-check: