X-Git-Url: https://git.rohieb.name/openwrt.git/blobdiff_plain/42ef307c66cda7b7e0cb34f931633e6aee15ac5b..eeed6076b93adcb888fdad24c5d4d52e134c4622:/include/kernel.mk?ds=sidebyside diff --git a/include/kernel.mk b/include/kernel.mk index f9baeef0a..b413d8484 100644 --- a/include/kernel.mk +++ b/include/kernel.mk @@ -23,11 +23,11 @@ else 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 ) @@ -88,7 +88,10 @@ define ModuleAutoLoad chmod 0755 $(2)/CONTROL/postinst; \ fi endef - + +ifeq ($(DUMP)$(TARGET_BUILD),) + -include $(LINUX_DIR)/.config +endif define KernelPackage NAME:=$(1)