All of lore.kernel.org
 help / color / mirror / Atom feed
From: Mike Frysinger <vapier@gentoo.org>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH v2] toolchain-external: allow vendor-controlled defaults
Date: Thu, 18 Nov 2010 06:21:08 -0500	[thread overview]
Message-ID: <1290079268-2541-1-git-send-email-vapier@gentoo.org> (raw)
In-Reply-To: <1290076101-31697-1-git-send-email-vapier@gentoo.org>

Some vendors (like ADI and the Blackfin processor) maintain & ship binary
toolchains that are up-to-date and have been fully tested.  They also use
a standard toolchain prefix.  Since these are (by and large) the packages
that users leverage when compiling Blackfin code, it doesn't make sense
to force them to manually input the toolchain name themselves.  So let ADI
configurations set up reasonable defaults to make people's lives easier.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
---
 toolchain/toolchain-external/Config.in.2 |   11 +++++++++++
 toolchain/toolchain-external/ext-tool.mk |    2 ++
 2 files changed, 13 insertions(+), 0 deletions(-)

diff --git a/toolchain/toolchain-external/Config.in.2 b/toolchain/toolchain-external/Config.in.2
index 489558c..50e61e6 100644
--- a/toolchain/toolchain-external/Config.in.2
+++ b/toolchain/toolchain-external/Config.in.2
@@ -1,15 +1,26 @@
 #
 
 if BR2_TOOLCHAIN_EXTERNAL
+
+config BR2_TOOLCHAIN_OVERRIDE_VENDOR
+	bool "Override vendor/device toolchain defaults" if BR2_bfin
+	default y
+	help
+	  Some targets have standard toolchain namings which the
+	  vendor/device maintainer have defined.  If you wish to
+	  override their choices, say Y here.
+
 config BR2_TOOLCHAIN_EXTERNAL_PATH
 	string "External toolchain path"
 	default "/path/to/staging_dir/usr"
+	depends on BR2_TOOLCHAIN_OVERRIDE_VENDOR
 	help
 	  Path to where the external toolchain is installed.
 
 config BR2_TOOLCHAIN_EXTERNAL_PREFIX
 	string "External toolchain prefix"
 	default "$(ARCH)-linux"
+	depends on BR2_TOOLCHAIN_OVERRIDE_VENDOR
 	help
 	  This the the external toolchain prefix. For example:
 	    armeb-unknown-linux-gnu, mipsel-unknown-linux-gnu, etc.
diff --git a/toolchain/toolchain-external/ext-tool.mk b/toolchain/toolchain-external/ext-tool.mk
index 7e4645d..2501256 100644
--- a/toolchain/toolchain-external/ext-tool.mk
+++ b/toolchain/toolchain-external/ext-tool.mk
@@ -37,6 +37,8 @@
 #  cross-compiler binaries remains external, all libraries and headers
 #  are imported into the Buildroot tree.
 
+-include target/device/*/ext-tool.mk
+
 uclibc: dependencies $(STAMP_DIR)/ext-toolchain-installed
 
 LIB_EXTERNAL_LIBS=ld*.so libc.so libcrypt.so libdl.so libgcc_s.so libm.so libnsl.so libresolv.so librt.so libutil.so
-- 
1.7.3.2

      parent reply	other threads:[~2010-11-18 11:21 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-11-18 10:28 [Buildroot] [PATCH] toolchain-external: allow vendor-controlled defaults Mike Frysinger
2010-11-18 10:55 ` Thomas Petazzoni
2010-11-23 21:35   ` Thomas Petazzoni
2010-11-24  1:00     ` Mike Frysinger
2010-11-18 11:21 ` Mike Frysinger [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1290079268-2541-1-git-send-email-vapier@gentoo.org \
    --to=vapier@gentoo.org \
    --cc=buildroot@busybox.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.