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/kernel.mk | |
parent | dd046f47599ab96b56c4d66a882f685735df9e40 (diff) | |
download | upstream-965f7700830e6dd75fc10436846bd275291f27cd.tar.gz upstream-965f7700830e6dd75fc10436846bd275291f27cd.tar.bz2 upstream-965f7700830e6dd75fc10436846bd275291f27cd.zip |
prevent kernel.mk from defining PATCH_DIR and FILES_DIR for regular packages
SVN-Revision: 20569
Diffstat (limited to 'include/kernel.mk')
-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 1ca2312824..63df959a48 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) |