Skip to contentSkip to conversation

toolchain/ct-ng: use program_invocation_name option from BR config

PATCH New Yann E. MORIN 2 participants 2 messages Feb 15, 2011 – Feb 17, 2011

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 toolchain/ct-ng: use program_invocation_name option from BR config

---
 toolchain/toolchain-crosstool-ng/crosstool-ng.mk |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)
toolchain/toolchain-crosstool-ng/crosstool-ng.mk +7 -0
index d066e98..8db8eac 100644
@@ -301,6 +301,13 @@ else
 CTNG_FIX_DOT_CONFIG_LIBC_SED += s:^(UCLIBC_HAS_RPC)=.*:\# \1 is not set:;
 endif
 
+# Handle the program_invocation_name option
+ifneq ($(call qstrip,$(BR2_PROGRAM_INVOCATION)),)
+CTNG_FIX_DOT_CONFIG_LIBC_SED += s:^\# (UCLIBC_HAS_PROGRAM_INVOCATION_NAME) is not set:\1=y:;
+else
+CTNG_FIX_DOT_CONFIG_LIBC_SED += s:^(UCLIBC_HAS_PROGRAM_INVOCATION_NAME)=y:\# \1 is not set:;
+endif
+
 # Instruct CT-NG's .config where to find the uClibc's .config
 CTNG_FIX_DOT_CONFIG_PATHS_SED += s:^(CT_LIBC_UCLIBC_CONFIG_FILE)=.*:\1="$(CTNG_DIR)/libc.config":;
 
Signature · 1 line
1.7.2.3
#1 lore raw

PATCH 1/1 toolchain/ct-ng: use program_invocation_name option from BR config

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Yann" == Yann E MORIN <[email protected]> writes:

Yann> Signed-off-by: "Yann E. MORIN" <[email protected]>

Committed, thanks.

Signature · 1 line
Bye, Peter Korsgaard