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)
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
ifeq ($(CONFIG_BT),y)
# we'll ignore compiling bluetooth
else
-CONFIG_COMPAT_BT=y
+CONFIG_COMPAT_BLUETOOTH=y
CONFIG_COMPAT_BLUETOOTH_MODULES=m
endif
*/
#include <linux/types.h>
-+#include <linux/compat.h>
++#include <linux/compat-2.6.h>
/* define userspace visible states */
#define RFKILL_STATE_SOFT_BLOCKED 0
/* remove once we remove the wext stuff */
#include <net/iw_handler.h>
#include <linux/wireless.h>
-+#include <linux/compat.h>
++#include <linux/compat-2.6.h>
/*
# 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/