From: Luis R. Rodriguez Date: Fri, 11 Dec 2009 06:24:17 +0000 (-0800) Subject: Add missing CONFIG_COMPAT tags to make wireless start building again X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=e82318fe9694c2025ed1f18de9ea6a6e9f93e54f;p=openwrt%2Fstaging%2Fblogic.git Add missing CONFIG_COMPAT tags to make wireless start building again Also renames compat.h to compat-2.6.h to match compat.git Signed-off-by: Luis R. Rodriguez --- diff --git a/Makefile b/Makefile index 8f12d8a04e55..afeef851ee92 100644 --- a/Makefile +++ b/Makefile @@ -17,23 +17,25 @@ ifneq ($(KERNELRELEASE),) include $(M)/$(COMPAT_CONFIG) -NOSTDINC_FLAGS := -I$(M)/include/ -include $(M)/include/linux/compat.h $(CFLAGS) +NOSTDINC_FLAGS := -I$(M)/include/ -include $(M)/include/linux/compat-2.6.h $(CFLAGS) obj-y := compat/ obj-$(COMPAT_RFKILL) += net/rfkill/ -obj-$(CONFIG_COMPAT_BT) += net/bluetooth/ + obj-$(CONFIG_COMPAT_WIRELESS) += net/wireless/ net/mac80211/ +obj-$(CONFIG_COMPAT_WIRELESS_MODULES) += drivers/net/wireless/ + +obj-$(CONFIG_COMPAT_NET_USB_MODULES) += drivers/net/usb/ + +obj-$(CONFIG_COMPAT_BT) += net/bluetooth/ +obj-$(CONFIG_COMPAT_BLUETOOTH_MODULES) += drivers/bluetooth/ obj-$(CONFIG_COMPAT_NETWORK_MODULES) += drivers/net/ obj-$(CONFIG_COMPAT_VAR_MODULES) += drivers/misc/eeprom/ # Sorry ssb requires pcmica backport for 2.6.33 which is not done yet # drivers/ssb/ -obj-$(CONFIG_COMPAT_NET_USB_MODULES) += drivers/net/usb/ -obj-$(CONFIG_COMPAT_WIRELESS_MODULES) += drivers/net/wireless/ -obj-$(CONFIG_COMPAT_BLUETOOTH_MODULES) += drivers/bluetooth/ - else export PWD := $(shell pwd) diff --git a/config.mk b/config.mk index 3f70defab3cd..874c27e13565 100644 --- a/config.mk +++ b/config.mk @@ -21,8 +21,8 @@ endif ifeq ($(CONFIG_MAC80211),y) $(error "ERROR: you have MAC80211 compiled into the kernel, CONFIG_MAC80211=y, as such you cannot replace its mac80211 driver. You need this set to CONFIG_MAC80211=m. If you are using Fedora upgrade your kernel as later version should this set as modular. For further information on Fedora see https://bugzilla.redhat.com/show_bug.cgi?id=470143. If you are using your own kernel recompile it and make mac80211 modular") else - CONFIG_COMPAT_KERNEL=y - CONFIG_COMPAT_KERNEL_MODULES=m + CONFIG_COMPAT_WIRELESS=y + CONFIG_COMPAT_WIRELESS_MODULES=m CONFIG_COMPAT_VAR_MODULES=m # We could technically separate these but not yet, we only have b44 # Note that we don't intend on backporting network drivers that @@ -35,7 +35,7 @@ endif ifeq ($(CONFIG_BT),y) # we'll ignore compiling bluetooth else -CONFIG_COMPAT_BT=y +CONFIG_COMPAT_BLUETOOTH=y CONFIG_COMPAT_BLUETOOTH_MODULES=m endif diff --git a/patches/03-rfkill.patch b/patches/03-rfkill.patch index 02cdbe2abd37..8da7489401d8 100644 --- a/patches/03-rfkill.patch +++ b/patches/03-rfkill.patch @@ -170,7 +170,7 @@ This would do the policing from within mac80211. */ #include -+#include ++#include /* define userspace visible states */ #define RFKILL_STATE_SOFT_BLOCKED 0 diff --git a/patches/98-add-compat-wireless.patch b/patches/98-add-compat-wireless.patch index 05a45cedfa02..5e637ad43237 100644 --- a/patches/98-add-compat-wireless.patch +++ b/patches/98-add-compat-wireless.patch @@ -24,7 +24,7 @@ added compat.h also for ssb, I forget. /* remove once we remove the wext stuff */ #include #include -+#include ++#include /* diff --git a/scripts/admin-update.sh b/scripts/admin-update.sh index ec5bd1cc0943..f8bf87a3a6a7 100755 --- a/scripts/admin-update.sh +++ b/scripts/admin-update.sh @@ -196,7 +196,8 @@ done # b44 is dependent on ssb, so its has to be rebuilt as well. DIR="drivers/net" cp $GIT_TREE/$DIR/b44.[ch] $DIR -echo "obj-\$(CONFIG_B44) += b44.o" > $DIR/Makefile +# Not yet +#echo "obj-\$(CONFIG_B44) += b44.o" > $DIR/Makefile # Misc mkdir -p drivers/misc/eeprom/