X-Git-Url: http://git.rohieb.name/openwrt.git/blobdiff_plain/83b31e078f713ebc761f90030d71e12618bd68ad..2c09b394870dc15b8f5f94478631c6b64c0a8b36:/include/kernel-build.mk?ds=sidebyside diff --git a/include/kernel-build.mk b/include/kernel-build.mk index 75c2bcf01..477c9eedd 100644 --- a/include/kernel-build.mk +++ b/include/kernel-build.mk @@ -11,6 +11,7 @@ ifneq ($(DUMP),1) all: compile endif +export QUILT=1 STAMP_PREPARED:=$(LINUX_DIR)/.prepared STAMP_CONFIGURED:=$(LINUX_DIR)/.configured include $(INCLUDE_DIR)/download.mk @@ -77,27 +78,21 @@ define BuildKernel $(MAKE) -C image compile TARGET_BUILD= oldconfig menuconfig: $(STAMP_PREPARED) FORCE + [ -e "$(LINUX_CONFIG)" ] || touch "$(LINUX_CONFIG)" $(LINUX_CONFCMD) > $(LINUX_DIR)/.config touch $(LINUX_CONFIG) - $(MAKE) -C $(LINUX_DIR) $(KERNEL_MAKEOPTS) $$@ - $(SCRIPT_DIR)/kconfig.pl '>' $(GENERIC_LINUX_CONFIG) $(LINUX_DIR)/.config > $(LINUX_CONFIG) + $(_SINGLE)$(MAKE) -C $(LINUX_DIR) $(KERNEL_MAKEOPTS) $$@ + $(SCRIPT_DIR)/kconfig.pl '>' $(GENERIC_LINUX_CONFIG) $(LINUX_DIR)/.config > $(if $(LINUX_SUBCONFIG),$(LINUX_SUBCONFIG),$(LINUX_CONFIG)) $(Kernel/Configure) install: $(LINUX_DIR)/.image - TARGET_BUILD="" $(MAKE) -C image compile install + +$(MAKE) -C image compile install TARGET_BUILD= clean: FORCE rm -rf $(KERNEL_BUILD_DIR) - rebuild: FORCE - @$(MAKE) mostlyclean - @if [ -f $(LINUX_KERNEL) ]; then \ - $(MAKE) clean; \ - fi - @$(MAKE) compile - image-prereq: - @$(NO_TRACE_MAKE) -s -C image prereq TARGET_BUILD= + @+$(NO_TRACE_MAKE) -s -C image prereq TARGET_BUILD= prereq: image-prereq