diff options
author | Felix Fietkau <nbd@openwrt.org> | 2010-03-29 03:07:54 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2010-03-29 03:07:54 +0000 |
commit | 965f7700830e6dd75fc10436846bd275291f27cd (patch) | |
tree | 91f307280cabd73727ba49d87598ea2093f88ab9 /include | |
parent | dd046f47599ab96b56c4d66a882f685735df9e40 (diff) | |
download | mtk-20170518-965f7700830e6dd75fc10436846bd275291f27cd.zip mtk-20170518-965f7700830e6dd75fc10436846bd275291f27cd.tar.gz mtk-20170518-965f7700830e6dd75fc10436846bd275291f27cd.tar.bz2 |
prevent kernel.mk from defining PATCH_DIR and FILES_DIR for regular packages
SVN-Revision: 20569
Diffstat (limited to 'include')
-rw-r--r-- | include/kernel.mk | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/include/kernel.mk b/include/kernel.mk index 1ca2312..63df959 100644 --- a/include/kernel.mk +++ b/include/kernel.mk @@ -30,8 +30,10 @@ else KERNEL_CROSS?=$(TARGET_CROSS) endif - PATCH_DIR ?= ./patches$(if $(wildcard ./patches-$(KERNEL_PATCHVER)),-$(KERNEL_PATCHVER)) - FILES_DIR ?= $(foreach dir,$(wildcard ./files ./files-$(KERNEL_PATCHVER)),"$(dir)") + ifeq ($(TARGET_BUILD),1) + PATCH_DIR ?= ./patches$(if $(wildcard ./patches-$(KERNEL_PATCHVER)),-$(KERNEL_PATCHVER)) + FILES_DIR ?= $(foreach dir,$(wildcard ./files ./files-$(KERNEL_PATCHVER)),"$(dir)") + endif KERNEL_BUILD_DIR ?= $(BUILD_DIR_BASE)/linux-$(BOARD)$(if $(SUBTARGET),_$(SUBTARGET))$(if $(BUILD_SUFFIX),_$(BUILD_SUFFIX)) LINUX_DIR ?= $(KERNEL_BUILD_DIR)/linux-$(LINUX_VERSION) |