X-Git-Url: https://git.rohieb.name/openwrt.git/blobdiff_plain/4c98f8465d7b207b150b3c67705e35297d7804be..52e338eefff89d3e351dc33d9128e3a74b87af04:/package/kernel/Makefile diff --git a/package/kernel/Makefile b/package/kernel/Makefile index a030ad723..8f98be384 100644 --- a/package/kernel/Makefile +++ b/package/kernel/Makefile @@ -15,6 +15,9 @@ PKG_RELEASE:=$(LINUX_RELEASE) PKG_BUILD_DIR:=$(KERNEL_BUILD_DIR)/packages +# build all in-tree kmod-* packages by default +KMOD_DEFAULT:=m + include $(INCLUDE_DIR)/package.mk ifeq ($(DUMP),) -include $(LINUX_DIR)/.config @@ -46,13 +49,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