瀏覽代碼

fix verbose output with dash as /bin/sh

SVN-Revision: 8227
Felix Fietkau 18 年之前
父節點
當前提交
e23c6c4b6b
共有 3 個文件被更改,包括 4 次插入1 次删除
  1. 2 0
      Makefile
  2. 1 0
      include/host.mk
  3. 1 1
      include/verbose.mk

+ 2 - 0
Makefile

@@ -18,6 +18,8 @@ ifneq ($(OPENWRT_BUILD),1)
   export OPENWRT_BUILD:=1
   include $(TOPDIR)/include/toplevel.mk
 else
+  include $(TOPDIR)/include/host.mk
+
   include rules.mk
   include $(INCLUDE_DIR)/depends.mk
   include $(INCLUDE_DIR)/subdir.mk

+ 1 - 0
include/host.mk

@@ -8,6 +8,7 @@
 -include $(TMP_DIR)/.host.mk
 
 export TAR
+TMP_DIR ?= $(TOPDIR)/tmp
 
 ifneq ($(__host_inc),1)
 __host_inc:=1

+ 1 - 1
include/verbose.mk

@@ -26,7 +26,7 @@ ifeq ($(IS_TTY),1)
 endif
 
 define MESSAGE
-	echo -e "$(_Y)$(1)$(_N)" >&3
+	/bin/echo -e "$(_Y)$(1)$(_N)" >&3
 endef
 
 ifneq ($(KBUILD_VERBOSE),99)