From d7ac2229f52ab6f88f917a69393d9e06b04b6615 Mon Sep 17 00:00:00 2001 From: nbd Date: Fri, 30 Nov 2007 11:33:31 +0000 Subject: [PATCH] make sure iw doesn't get compiled on older kernels git-svn-id: svn://svn.openwrt.org/openwrt/trunk@9639 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- package/iw/Makefile | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/package/iw/Makefile b/package/iw/Makefile index 36361fb31..024dfde24 100644 --- a/package/iw/Makefile +++ b/package/iw/Makefile @@ -38,9 +38,11 @@ MAKE_FLAGS += \ CFLAGS="$(TARGET_CFLAGS) -I$(STAGING_DIR)/usr/include/mac80211 -I$(STAGING_DIR)/usr/include/libnl -I$(STAGING_DIR)/usr/include" \ LDFLAGS="-L$(STAGING_DIR)/usr/lib -lnl" -define Package/iw/install +ifneq ($(CONFIG_LINUX_2_6_23),) + define Package/iw/install $(INSTALL_DIR) $(1)/usr/sbin $(INSTALL_BIN) $(PKG_BUILD_DIR)/iw $(1)/usr/sbin/ -endef + endef +endif $(eval $(call BuildPackage,iw))