aboutsummaryrefslogtreecommitdiffstats
path: root/package/hostap/Makefile
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2006-09-04 21:28:28 +0000
committerFelix Fietkau <nbd@openwrt.org>2006-09-04 21:28:28 +0000
commit8cced9f0283457eb48f4dc594d62f4c9af15ff80 (patch)
tree2594e6a247867cd56c6147a9ae36449449d59ed6 /package/hostap/Makefile
parent278b9713ec07fec8b4695f9a30dfb3a43d9fee29 (diff)
downloadupstream-8cced9f0283457eb48f4dc594d62f4c9af15ff80.tar.gz
upstream-8cced9f0283457eb48f4dc594d62f4c9af15ff80.tar.bz2
upstream-8cced9f0283457eb48f4dc594d62f4c9af15ff80.zip
add checks for the kernel config when building hostap for linux 2.6
git-svn-id: svn://svn.openwrt.org/openwrt/branches/buildroot-ng/openwrt@4751 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/hostap/Makefile')
-rw-r--r--package/hostap/Makefile6
1 files changed, 6 insertions, 0 deletions
diff --git a/package/hostap/Makefile b/package/hostap/Makefile
index b653b14550..90281fe6b5 100644
--- a/package/hostap/Makefile
+++ b/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))