aboutsummaryrefslogtreecommitdiffstats
path: root/package/mac80211
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2007-11-17 15:54:53 +0000
committerFelix Fietkau <nbd@openwrt.org>2007-11-17 15:54:53 +0000
commit515a409596f3609dc1fbe229e0708fdfe0b6eb75 (patch)
tree92421c09e2f678c7719a576d2afbf57d1234b7c9 /package/mac80211
parent11152dafda19bf8d8e6132ecfb211e972b010eb2 (diff)
downloadmaster-187ad058-515a409596f3609dc1fbe229e0708fdfe0b6eb75.tar.gz
master-187ad058-515a409596f3609dc1fbe229e0708fdfe0b6eb75.tar.bz2
master-187ad058-515a409596f3609dc1fbe229e0708fdfe0b6eb75.zip
prevent mac80211 from accidentally starting to build on older kernel versions because of dependencies (#2718)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@9578 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/mac80211')
-rw-r--r--package/mac80211/Makefile14
1 files changed, 8 insertions, 6 deletions
diff --git a/package/mac80211/Makefile b/package/mac80211/Makefile
index 65f2005d13..42f8ad232b 100644
--- a/package/mac80211/Makefile
+++ b/package/mac80211/Makefile
@@ -57,18 +57,20 @@ define Build/Compile
$(MAKE) -C "$(LINUX_DIR)" $(MAKE_OPTS) SUBDIRS="$(PKG_BUILD_DIR)/net/mac80211" modules
endef
-define Build/InstallDev
+ifeq ($(CONFIG_LINUX_2_6_23),y)
+ define Build/InstallDev
mkdir -p $(1)/usr/include/mac80211
$(CP) $(PKG_BUILD_DIR)/net/mac80211/*.h $(PKG_BUILD_DIR)/include/* $(1)/usr/include/mac80211/
-endef
+ endef
-define Build/UninstallDev
+ define Build/UninstallDev
rm -rf $(1)/usr/include/mac80211
-endef
+ endef
-define KernelPackage/mac80211/install
+ define KernelPackage/mac80211/install
$(INSTALL_DIR) $(1)/lib/wifi
$(INSTALL_DATA) ./files/lib/wifi/mac80211.sh $(1)/lib/wifi
-endef
+ endef
+endif
$(eval $(call KernelPackage,mac80211))