endif
ifneq (,$(findstring uml,$(BOARD)))
- KERNEL_CC:=$(HOSTCC)
- KERNEL_CROSS:=
+ KERNEL_CC?=$(HOSTCC)
+ KERNEL_CROSS?=
else
- KERNEL_CC:=$(TARGET_CC)
- KERNEL_CROSS:=$(TARGET_CROSS)
+ KERNEL_CC?=$(TARGET_CC)
+ KERNEL_CROSS?=$(TARGET_CROSS)
endif
PATCH_DIR ?= ./patches$(shell [ -d "./patches-$(KERNEL_PATCHVER)" ] && printf -- "-$(KERNEL_PATCHVER)" || true )
+ FILES_DIR ?= ./files$(shell [ -d "./files-$(KERNEL_PATCHVER)" ] && printf -- "-$(KERNEL_PATCHVER)" || true )
KERNEL_BUILD_DIR ?= $(BUILD_DIR_BASE)/linux-$(BOARD)$(if $(SUBTARGET),_$(SUBTARGET))$(if $(BUILD_SUFFIX),_$(BUILD_SUFFIX))
LINUX_DIR ?= $(KERNEL_BUILD_DIR)/linux-$(LINUX_VERSION)
chmod 0755 $(2)/CONTROL/postinst; \
fi
endef
-
+
+ifeq ($(DUMP)$(TARGET_BUILD),)
+ -include $(LINUX_DIR)/.config
+endif
define KernelPackage
NAME:=$(1)