make sure iw doesn't get compiled on older kernels

SVN-Revision: 9639
This commit is contained in:
Felix Fietkau 2007-11-30 11:33:31 +00:00
parent 661d97025a
commit 1b3a1d0de1

View file

@ -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"
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
endif
$(eval $(call BuildPackage,iw))