Changeset 20569


Ignore:
Timestamp:
2010-03-29T05:07:54+02:00 (8 years ago)
Author:
nbd
Message:

prevent kernel.mk from defining PATCH_DIR and FILES_DIR for regular packages

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/kernel.mk

    r19878 r20569  
    3131  endif 
    3232 
    33   PATCH_DIR ?= ./patches$(if $(wildcard ./patches-$(KERNEL_PATCHVER)),-$(KERNEL_PATCHVER)) 
    34   FILES_DIR ?= $(foreach dir,$(wildcard ./files ./files-$(KERNEL_PATCHVER)),"$(dir)") 
     33  ifeq ($(TARGET_BUILD),1) 
     34    PATCH_DIR ?= ./patches$(if $(wildcard ./patches-$(KERNEL_PATCHVER)),-$(KERNEL_PATCHVER)) 
     35    FILES_DIR ?= $(foreach dir,$(wildcard ./files ./files-$(KERNEL_PATCHVER)),"$(dir)") 
     36  endif 
    3537  KERNEL_BUILD_DIR ?= $(BUILD_DIR_BASE)/linux-$(BOARD)$(if $(SUBTARGET),_$(SUBTARGET))$(if $(BUILD_SUFFIX),_$(BUILD_SUFFIX)) 
    3638  LINUX_DIR ?= $(KERNEL_BUILD_DIR)/linux-$(LINUX_VERSION) 
Note: See TracChangeset for help on using the changeset viewer.