pkg-cmake.mk: replace "echo -en" with printf
authorSamuel Martin <s.martin49@gmail.com>
Wed, 23 Apr 2014 22:48:20 +0000 (00:48 +0200)
committerPeter Korsgaard <peter@korsgaard.com>
Thu, 24 Apr 2014 20:29:55 +0000 (22:29 +0200)
printf is POSIX-compliant, echo -e is not.

Signed-off-by: Samuel Martin <s.martin49@gmail.com>
Cc: Arnout Vandecappelle <arnout@mind.be>
Acked-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
package/pkg-cmake.mk

index bf3db90134b0addb358d955c126947c1a665a08b..edda14a5c2fd099643a3e6485c2b6a104b83182c 100644 (file)
@@ -160,7 +160,7 @@ host-cmake-package = $(call inner-cmake-package,host-$(pkgname),$(call UPPERCASE
 
 $(HOST_DIR)/usr/share/buildroot/toolchainfile.cmake:
        @mkdir -p $(@D)
-       @echo -en "\
+       @printf "\
        set(CMAKE_SYSTEM_NAME Linux)\n\
        set(CMAKE_C_COMPILER $(TARGET_CC_NOCCACHE))\n\
        set(CMAKE_CXX_COMPILER $(TARGET_CXX_NOCCACHE))\n\