X-Git-Url: http://git.rohieb.name/openwrt.git/blobdiff_plain/3ce8595b78fb95bfbfda8123d69c6e3494ec9bab..425fe905bf207fe5ba5d9d31c9ec0a05714d128f:/rules.mk?ds=sidebyside diff --git a/rules.mk b/rules.mk index dad7456a6..05609b9ac 100644 --- a/rules.mk +++ b/rules.mk @@ -4,7 +4,6 @@ # This is free software, licensed under the GNU General Public License v2. # See /LICENSE for more information. # -# $Id$ ifneq ($(__rules_inc),1) __rules_inc=1 @@ -65,6 +64,7 @@ STAMP_DIR_HOST=$(BUILD_DIR_HOST)/stamp TARGET_ROOTFS_DIR?=$(if $(call qstrip,$(CONFIG_TARGET_ROOTFS_DIR)),$(call qstrip,$(CONFIG_TARGET_ROOTFS_DIR)),$(BUILD_DIR)) TARGET_DIR:=$(TARGET_ROOTFS_DIR)/root-$(BOARD) DEBUG_DIR:=$(BUILD_DIR)/debug-$(BOARD) +BUILD_LOG_DIR:=$(TOPDIR)/logs TARGET_PATH:=$(TOOLCHAIN_DIR)/usr/bin:$(STAGING_DIR_HOST)/bin:$(PATH) TARGET_PATH_PKG:=$(STAGING_DIR)/host/bin:$(TARGET_PATH) @@ -103,8 +103,7 @@ HOST_CFLAGS:=-O2 -I$(STAGING_DIR_HOST)/include HOST_LDFLAGS:=-L$(STAGING_DIR_HOST)/lib TARGET_CC:=$(TARGET_CROSS)gcc -TARGET_CXX:=$(TARGET_CROSS)g++ -STRIP:=$(STAGING_DIR_HOST)/bin/sstrip +TARGET_CXX:=$(if $(CONFIG_INSTALL_LIBSTDCPP),$(TARGET_CROSS)g++,no) PATCH:=$(SCRIPT_DIR)/patch-kernel.sh SED:=$(STAGING_DIR_HOST)/bin/sed -i -e CP:=cp -fpR @@ -137,7 +136,15 @@ TARGET_CONFIGURE_OPTS:= \ # strip an entire directory ifneq ($(CONFIG_NO_STRIP),) RSTRIP:=: + STRIP:=: else + ifneq ($(CONFIG_USE_STRIP),) + STRIP:=$(TARGET_CROSS)strip + else + ifneq ($(CONFIG_USE_SSTRIP),) + STRIP:=$(STAGING_DIR_HOST)/bin/sstrip + endif + endif RSTRIP:= \ NM="$(TARGET_CROSS)nm" \ STRIP="$(STRIP)" \