rt2x00 fixes after [8548]: * fix creating defines from kconfig * revert auto-inclusio...
authorNicolas Thill <nico@openwrt.org>
Thu, 30 Aug 2007 16:41:16 +0000 (16:41 +0000)
committerNicolas Thill <nico@openwrt.org>
Thu, 30 Aug 2007 16:41:16 +0000 (16:41 +0000)
SVN-Revision: 8551

package/rt2x00/Makefile
package/rt2x00/src/Makefile

index e7e4b57e4e988239a907c74d5462970318e992f7..fe1ee64efff2418aaf625c3717a00d76c9da000a 100644 (file)
@@ -130,8 +130,8 @@ ifndef ($(CONFIG_MAC80211),)
 
   PKG_EXTRA_CFLAGS:= \
        -I$(STAGING_DIR)/usr/include/mac80211 \
-       $(patsubst CONFIG_%, -DCONFIG_%=1, $(filter %=m,$(PKG_EXTRA_KCONFIG))) \
-       $(patsubst CONFIG_%, -DCONFIG_%=1, $(filter %=y,$(PKG_EXTRA_KCONFIG))) \
+       $(patsubst CONFIG_%, -DCONFIG_%=1, $(patsubst %=m,%,$(filter %=m,$(PKG_EXTRA_KCONFIG)))) \
+       $(patsubst CONFIG_%, -DCONFIG_%=1, $(patsubst %=y,%,$(filter %=y,$(PKG_EXTRA_KCONFIG)))) \
 
   define Build/Compile/it
        $(MAKE) -C "$(LINUX_DIR)" \
index dd32cf6a20071ddd1a6322b17df5ab5f0b1e6610..842afbac207baac0b7c02cf336a0d79e14f03865 100644 (file)
@@ -97,6 +97,7 @@ endif
 endif
 
 MAKEFLAGS += --no-print-directory
+CFLAGS := -include $(SUBDIRS)/rt2x00_compat.h $(CFLAGS)
 
 all: default