From: nbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Date: Thu, 2 Aug 2007 23:49:31 +0000 (+0000)
Subject: fix kmod packages that don't use KCONFIG
X-Git-Url: https://git.rohieb.name/openwrt.git/commitdiff_plain/ce46ec90199b717bb1c28fe11e5a8034702fbad5

fix kmod packages that don't use KCONFIG

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@8323 3c298f89-4303-0410-b956-a3cf2f4a3e73
---

diff --git a/include/kernel.mk b/include/kernel.mk
index dfdd277dc..3fa576efd 100644
--- a/include/kernel.mk
+++ b/include/kernel.mk
@@ -99,7 +99,7 @@ define KernelPackage
     $(call KernelPackage/$(1)/$(BOARD)-$(KERNEL))
   endef
 
-  ifneq ($(filter m,$(foreach c,$(filter-out %=y %=n %=m,$(KCONFIG)),$($(c)))),)
+  ifneq ($(if $(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)