X-Git-Url: https://git.rohieb.name/openwrt.git/blobdiff_plain/0ec5192c336f5bf971e6dd02031360e2f157af51..35fbeba8126fa33b9d066a5219c8f0c3cffbc285:/include/kernel.mk?ds=sidebyside diff --git a/include/kernel.mk b/include/kernel.mk index b80c3b63f..5232148a6 100644 --- a/include/kernel.mk +++ b/include/kernel.mk @@ -120,7 +120,15 @@ $(call KernelPackage/$(1)/description) endef endif - ifneq ($(if $(KCONFIG),$(filter m,$(foreach c,$(filter-out %=y %=n %=m,$(KCONFIG)),$($(c)))),.),) + ifdef KernelPackage/$(1)/config + define Package/kmod-$(1)/config +$(call KernelPackage/$(1)/config) + endef + endif + + $(STAMP_BUILT): $(LINUX_DIR)/.config + + ifneq ($(if $(filter-out %=y %=n %=m,$(KCONFIG)),$(filter m,$(foreach c,$(filter-out %=y %=n %=m,$(KCONFIG)),$($(c)))),.),) ifneq ($(strip $(FILES)),) define Package/kmod-$(1)/install mkdir -p $$(1)/lib/modules/$(LINUX_VERSION)