Use SED instead of ECHO when config 'program_invocation_name'
authorUlf Samuelsson <ulf.samuelsson@atmel.com>
Thu, 16 Aug 2007 05:01:43 +0000 (05:01 -0000)
committerUlf Samuelsson <ulf.samuelsson@atmel.com>
Thu, 16 Aug 2007 05:01:43 +0000 (05:01 -0000)
toolchain/uClibc/uclibc.mk

index 395558f9b522a9101e17305aac87af1abccf34c4..d026668b53e68b2996f26328ea67cbdafc1fbb74 100644 (file)
@@ -230,9 +230,9 @@ else
        $(SED) 's,^.*UCLIBC_HAS_WCHAR.*,UCLIBC_HAS_WCHAR=n,g' $(UCLIBC_DIR)/.oldconfig
 endif
 ifeq ($(BR2_UCLIBC_PROGRAM_INVOCATION),y)
-       echo "UCLIBC_HAS_PROGRAM_INVOCATION_NAME=y" >> $(UCLIBC_DIR)/.oldconfig
+       $(SED) 's,^.*UCLIBC_HAS_PROGRAM_INVOCATION_NAME.*,UCLIBC_HAS_PROGRAM_INVOCATION_NAME=y,g' $(UCLIBC_DIR)/.oldconfig
 else
-       echo "# UCLIBC_HAS_PROGRAM_INVOCATION_NAME is not set" >> $(UCLIBC_DIR)/.oldconfig
+       $(SED) 's,^.*UCLIBC_HAS_PROGRAM_INVOCATION_NAME.*,UCLIBC_HAS_PROGRAM_INVOCATION_NAME=n,g' $(UCLIBC_DIR)/.oldconfig
 endif
 ifeq ("$(KERNEL_ARCH)","i386")
        /bin/echo "# CONFIG_GENERIC_386 is not set" >> $(UCLIBC_DIR)/.oldconfig