From patchwork Sun Jan 13 21:52:22 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Yann E. MORIN" X-Patchwork-Id: 211654 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 EFF812C00FC for ; Mon, 14 Jan 2013 08:53:02 +1100 (EST) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id 3E36B100326; Sun, 13 Jan 2013 21:52:51 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org X-Amavis-Alert: BAD HEADER SECTION, Duplicate header field: "References" Received: from fraxinus.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id BzQMPo3Ax7Fl; Sun, 13 Jan 2013 21:52:44 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by fraxinus.osuosl.org (Postfix) with ESMTP id 144F010161D; Sun, 13 Jan 2013 21:52:32 +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 9DEB48F7A0 for ; Sun, 13 Jan 2013 21:52:41 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 37E59816DC for ; Sun, 13 Jan 2013 21:52:35 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org X-Amavis-Alert: BAD HEADER SECTION, Duplicate header field: "References" Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id kkoZu5cajHtk for ; Sun, 13 Jan 2013 21:52:34 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-we0-f182.google.com (mail-we0-f182.google.com [74.125.82.182]) by whitealder.osuosl.org (Postfix) with ESMTPS id 0F70281C26 for ; Sun, 13 Jan 2013 21:52:33 +0000 (UTC) Received: by mail-we0-f182.google.com with SMTP id u54so1749155wey.41 for ; Sun, 13 Jan 2013 13:52:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:sender:from:to:cc:subject:date:message-id:x-mailer :in-reply-to:references:in-reply-to:references; bh=QgE+BMc5UGJxtJd1j8gItXH1xU4nN6V8o4OXBSRjfoY=; b=o/PixxfwdM4gIJoHaBJVCGlm1sHelM7TpFS8KbLjQ/1kWGTrvmIAOhqdeiB4cp/65+ HHNq/9dUx8aGWy04ySJNZmnn6UpHFPB+KU6IoHfda9gSEsYmIBG/l1prNV9LOEfCLTM0 QHJ9D/XYRvbiwP80uzJDXd9mDbpsbyx/Ed3ZvdjHV6HGFXr/KFWF7wDJg/7QJ13dV8Jk kOmI6vulGZBIYs653CsZZ9eXImHxQtP9yPZX8YCNjBqepdqC7pTIk8O6tvLBwcq0x0K+ 9HSixlrM7wJvvHiiMZm99rRHZv2hT34luqObocucjGSnWwqbi56Q/U07279na6QDF1ex EfWA== X-Received: by 10.180.96.225 with SMTP id dv1mr9500259wib.0.1358113952342; Sun, 13 Jan 2013 13:52:32 -0800 (PST) Received: from localhost.localdomain (ARennes-256-1-33-7.w90-32.abo.wanadoo.fr. [90.32.16.7]) by mx.google.com with ESMTPS id fv2sm10047940wib.4.2013.01.13.13.52.31 (version=TLSv1 cipher=RC4-SHA bits=128/128); Sun, 13 Jan 2013 13:52:31 -0800 (PST) From: "Yann E. MORIN" To: buildroot@busybox.net Date: Sun, 13 Jan 2013 22:52:22 +0100 Message-Id: <803154dd2c0c7eaa83f6eb1c72c784bfe2b18378.1358113846.git.yann.morin.1998@free.fr> X-Mailer: git-send-email 1.7.2.5 In-Reply-To: References: In-Reply-To: References: Cc: "Yann E. MORIN" Subject: [Buildroot] [PATCH 3/4] support/dependencies: use newly-introduced BUILDROOT_CONFIG 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 No need to recreate a path we already have. Signed-off-by: "Yann E. MORIN" --- support/dependencies/dependencies.mk | 1 - support/dependencies/dependencies.sh | 10 +++++----- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/support/dependencies/dependencies.mk b/support/dependencies/dependencies.mk index cee2a48..ebe743a 100644 --- a/support/dependencies/dependencies.mk +++ b/support/dependencies/dependencies.mk @@ -22,7 +22,6 @@ endif core-dependencies: @HOSTCC="$(firstword $(HOSTCC))" MAKE="$(MAKE)" \ - CONFIG_FILE="$(CONFIG_DIR)/.config" \ DL_TOOLS="$(sort $(DL_TOOLS_DEPENDENCIES))" \ $(TOPDIR)/support/dependencies/dependencies.sh diff --git a/support/dependencies/dependencies.sh b/support/dependencies/dependencies.sh index ca58450..acba57c 100755 --- a/support/dependencies/dependencies.sh +++ b/support/dependencies/dependencies.sh @@ -147,8 +147,8 @@ for prog in awk bison flex msgfmt makeinfo patch gzip bzip2 perl tar wget cpio p fi done -if grep ^BR2_TOOLCHAIN_BUILDROOT=y $CONFIG_FILE > /dev/null && \ - grep ^BR2_ENABLE_LOCALE=y $CONFIG_FILE > /dev/null ; then +if grep ^BR2_TOOLCHAIN_BUILDROOT=y $BUILDROOT_CONFIG > /dev/null && \ + grep ^BR2_ENABLE_LOCALE=y $BUILDROOT_CONFIG > /dev/null ; then if ! which locale > /dev/null ; then /bin/echo -e "\nYou need locale support on your build machine to build a toolchain supporting locales\n" exit 1 ; @@ -159,7 +159,7 @@ if grep ^BR2_TOOLCHAIN_BUILDROOT=y $CONFIG_FILE > /dev/null && \ fi fi -if grep -q ^BR2_PACKAGE_CLASSPATH=y $CONFIG_FILE ; then +if grep -q ^BR2_PACKAGE_CLASSPATH=y $BUILDROOT_CONFIG ; then for prog in javac jar; do if ! which $prog > /dev/null ; then /bin/echo -e "\nYou must install '$prog' on your build machine\n" >&2 @@ -168,7 +168,7 @@ if grep -q ^BR2_PACKAGE_CLASSPATH=y $CONFIG_FILE ; then done fi -if grep -E '^BR2_TARGET_GENERIC_ROOT_PASSWD=".+"$' $CONFIG_FILE > /dev/null 2>&1; then +if grep -E '^BR2_TARGET_GENERIC_ROOT_PASSWD=".+"$' $BUILDROOT_CONFIG > /dev/null 2>&1; then if ! which mkpasswd > /dev/null 2>&1; then /bin/echo -e "\nYou need the 'mkpasswd' utility to set the root password\n" /bin/echo -e "(in Debian/ubuntu, 'mkpasswd' provided by the whois package)\n" @@ -176,7 +176,7 @@ if grep -E '^BR2_TARGET_GENERIC_ROOT_PASSWD=".+"$' $CONFIG_FILE > /dev/null 2>&1 fi fi -if grep -q ^BR2_HOSTARCH_NEEDS_IA32_LIBS=y $CONFIG_FILE ; then +if grep -q ^BR2_HOSTARCH_NEEDS_IA32_LIBS=y $BUILDROOT_CONFIG ; then if test ! -f /lib/ld-linux.so.2 ; then /bin/echo -e "\nYour Buildroot configuration uses pre-built tools for the x86 architecture," /bin/echo -e "but your build machine uses the x86-64 architecture without the 32 bits compatibility"