fix mac80211 build
authorFelix Fietkau <nbd@openwrt.org>
Thu, 21 Jun 2007 23:12:50 +0000 (23:12 +0000)
committerFelix Fietkau <nbd@openwrt.org>
Thu, 21 Jun 2007 23:12:50 +0000 (23:12 +0000)
SVN-Revision: 7696

package/mac80211/Makefile

index 30f6093226fc4c0e602c6e6c6d80d58b0105a324..e44e6870f4e25d6c12f76b829808a31be2c5ea81 100644 (file)
@@ -15,6 +15,9 @@ PKG_RELEASE:=1
 PKG_BUILD_DIR:=$(KERNEL_BUILD_DIR)/$(PKG_NAME)
 
 include $(INCLUDE_DIR)/package.mk
+ifeq ($(DUMP),)
+  include $(LINUX_DIR)/.config
+endif
 
 define KernelPackage/mac80211
   SUBMENU:=Wireless Drivers
@@ -41,7 +44,9 @@ endef
 MAKE_OPTS:=-C "$(LINUX_DIR)" \
        CROSS_COMPILE="$(TARGET_CROSS)" \
        ARCH="$(LINUX_KARCH)" \
-       EXTRA_CFLAGS="$(BUILDFLAGS)"
+       EXTRA_CFLAGS="$(BUILDFLAGS) -DCONFIG_MAC80211_LEDS" \
+       CONFIG_MAC80211=m \
+       CONFIG_MAC80211_LEDS=y
 
 define Build/Compile
        $(MAKE) $(MAKE_OPTS) SUBDIRS="$(PKG_BUILD_DIR)/wireless" modules