X-Git-Url: https://git.rohieb.name/openwrt.git/blobdiff_plain/4c98f8465d7b207b150b3c67705e35297d7804be..80c107f51c33480a2cf0d316fe581dad17a59480:/package/kernel/Makefile diff --git a/package/kernel/Makefile b/package/kernel/Makefile index a030ad723..3ec07d43a 100644 --- a/package/kernel/Makefile +++ b/package/kernel/Makefile @@ -14,6 +14,7 @@ PKG_VERSION:=$(LINUX_VERSION)-$(BOARD) PKG_RELEASE:=$(LINUX_RELEASE) PKG_BUILD_DIR:=$(KERNEL_BUILD_DIR)/packages +SCAN_DEPS=modules/*.mk include $(INCLUDE_DIR)/package.mk ifeq ($(DUMP),) @@ -46,13 +47,7 @@ define Package/kernel/install # nothing to do endef -# this is more robust than ifdef around eval/call -ifneq ($(DUMP),1) - define BuildKernel - $(call BuildPackage,kernel) - endef -endif -$(eval $(call BuildKernel)) +$(eval $(if $(DUMP),,$(call BuildPackage,kernel))) include $(TOPDIR)/target/linux/*/modules.mk include ./modules/*.mk