Patchwork [06/13] toolchain-crosstool-ng: get default paths from BR2_PROJECT_DIR

login
register
mail settings
Submitter Arnout Vandecappelle
Date Oct. 13, 2012, 11:14 p.m.
Message ID <20121013231417.17317.68954.stgit@localhost>
Download mbox | patch
Permalink /patch/191320/
State RFC
Headers show

Comments

Arnout Vandecappelle - Oct. 13, 2012, 11:14 p.m.
From: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>

Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
---
 toolchain/toolchain-crosstool-ng/Config.in |    1 +
 1 file changed, 1 insertion(+)

Patch

diff --git a/toolchain/toolchain-crosstool-ng/Config.in b/toolchain/toolchain-crosstool-ng/Config.in
index 35ea2b1..9a08768 100644
--- a/toolchain/toolchain-crosstool-ng/Config.in
+++ b/toolchain/toolchain-crosstool-ng/Config.in
@@ -36,6 +36,7 @@  config BR2_TOOLCHAIN_CTNG_LIBC
 
 config BR2_TOOLCHAIN_CTNG_CONFIG
 	string "crosstool-NG configuration file to use"
+	default "$(PROJECT_DIR)/crosstool-ng.config" if BR2_PROJECT_DIR != ""
 	default "toolchain/toolchain-crosstool-ng/crosstool-ng.config-uClibc" if BR2_TOOLCHAIN_CTNG_uClibc
 	default "toolchain/toolchain-crosstool-ng/crosstool-ng.config-eglibc" if BR2_TOOLCHAIN_CTNG_eglibc
 	default "toolchain/toolchain-crosstool-ng/crosstool-ng.config-glibc"  if BR2_TOOLCHAIN_CTNG_glibc