X-Git-Url: https://git.rohieb.name/openwrt.git/blobdiff_plain/900c05f6e102b84281efcd2fc5297b72d9253ba7..39111df10bcc92d6028cdc3884eea1dc31ceb9ff:/rules.mk diff --git a/rules.mk b/rules.mk index 9f1c4c474..950efebc8 100644 --- a/rules.mk +++ b/rules.mk @@ -32,7 +32,7 @@ SUBDIR:=$(patsubst $(TOPDIR)/%,%,${CURDIR}) OPTIMIZE_FOR_CPU:=$(ARCH) -DL_DIR:=$(TOPDIR)/dl +DL_DIR:=$(call qstrip,$(if $(CONFIG_DOWNLOAD_FOLDER), $(CONFIG_DOWNLOAD_FOLDER),$(TOPDIR)/dl)) BIN_DIR:=$(TOPDIR)/bin INCLUDE_DIR:=$(TOPDIR)/include SCRIPT_DIR:=$(TOPDIR)/scripts @@ -62,6 +62,8 @@ TARGET_CPPFLAGS:=-I$(STAGING_DIR)/usr/include -I$(STAGING_DIR)/include TARGET_LDFLAGS:=-L$(STAGING_DIR)/usr/lib -L$(STAGING_DIR)/lib export PATH:=$(TARGET_PATH) +export STAGING_DIR +export GCC_HONOUR_COPTS:=0 LINUX_HEADERS_DIR:=$(BUILD_DIR_TOOLCHAIN)/linux