diff options
author | Felix Fietkau <nbd@openwrt.org> | 2006-09-04 21:28:28 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2006-09-04 21:28:28 +0000 |
commit | e8e9ee4981d9a5df435e5d406bb02227035a1b9a (patch) | |
tree | 28bec1f21f5d866e591abbbf57a7567e3382fe0f | |
parent | 9251b17fbebea96a6b24f8dd81f6494c4cdd867d (diff) | |
download | upstream-e8e9ee4981d9a5df435e5d406bb02227035a1b9a.tar.gz upstream-e8e9ee4981d9a5df435e5d406bb02227035a1b9a.tar.bz2 upstream-e8e9ee4981d9a5df435e5d406bb02227035a1b9a.zip |
add checks for the kernel config when building hostap for linux 2.6
SVN-Revision: 4751
-rw-r--r-- | openwrt/package/hostap/Makefile | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/openwrt/package/hostap/Makefile b/openwrt/package/hostap/Makefile index b653b14550..90281fe6b5 100644 --- a/openwrt/package/hostap/Makefile +++ b/openwrt/package/hostap/Makefile @@ -96,20 +96,25 @@ ifeq ($(KERNEL),2.6) define Build/Compile endef +ifeq ($(CONFIG_HOSTAP),m) define Package/kmod-hostap/install install -m0755 -d $(1)/lib/modules/$(LINUX_VERSION) $(CP) \ $(MODULES_DIR)/kernel/drivers/net/wireless/hostap/hostap.$(LINUX_KMOD_SUFFIX) \ $(1)/lib/modules/$(LINUX_VERSION)/ endef +endif +ifeq ($(CONFIG_HOSTAP_PCI),m) define Package/kmod-hostap-pci/install install -m0755 -d $(1)/lib/modules/$(LINUX_VERSION) $(CP) \ $(MODULES_DIR)/kernel/drivers/net/wireless/hostap/hostap_pci.$(LINUX_KMOD_SUFFIX) \ $(1)/lib/modules/$(LINUX_VERSION)/ endef +endif +ifeq ($(CONFIG_HOSTAP_PLX),m) define Package/kmod-hostap-plx/install install -m0755 -d $(1)/lib/modules/$(LINUX_VERSION) $(CP) \ @@ -117,6 +122,7 @@ ifeq ($(KERNEL),2.6) $(1)/lib/modules/$(LINUX_VERSION)/ endef endif +endif $(eval $(call BuildPackage,kmod-hostap)) $(eval $(call BuildPackage,kmod-hostap-pci)) |