X-Git-Url: https://git.rohieb.name/openwrt.git/blobdiff_plain/b25e47676f13c263f38b0db67f03f903663192fb..2c3b9b3e1c860d53df1742afa5bd50cae05c7393:/include/package.mk diff --git a/include/package.mk b/include/package.mk index d67a38622..4e3125830 100644 --- a/include/package.mk +++ b/include/package.mk @@ -31,7 +31,11 @@ include $(INCLUDE_DIR)/package-bin.mk include $(INCLUDE_DIR)/autotools.mk override MAKEFLAGS= -export CONFIG_SITE:=$(INCLUDE_DIR)/site/$(patsubst %gnueabi,%,$(REAL_GNU_TARGET_NAME)) +CONFIG_SITE:=$(INCLUDE_DIR)/site/$(REAL_GNU_TARGET_NAME) +ifneq ($(CONFIG_LINUX_2_4),) + CONFIG_SITE:=$(subst linux-,linux2.4-,$(CONFIG_SITE)) +endif +export CONFIG_SITE CUR_MAKEFILE:=$(filter-out Makefile,$(firstword $(MAKEFILE_LIST))) SUBMAKE:=$(NO_TRACE_MAKE) $(if $(CUR_MAKEFILE),-f $(CUR_MAKEFILE))