]> git.openfabrics.org - ~emulex/for-vlad/compat.git/commitdiff
Enable the compat_firmware_class to be built only on < 2.6.32
authorLuis R. Rodriguez <lrodriguez@atheros.com>
Thu, 14 Jan 2010 01:35:29 +0000 (17:35 -0800)
committerLuis R. Rodriguez <lrodriguez@atheros.com>
Thu, 14 Jan 2010 01:36:57 +0000 (17:36 -0800)
Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
Makefile
compat/Makefile

index 0d4bd66d6e302646c73904a978bdd24207a8bd0f..06983c9eb5bc1b01233703f4406fb734c12137f3 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -18,6 +18,11 @@ COMPAT_VERSIONS := $(shell I=$(COMPAT_LATEST_VERSION); while [ "$$I" -gt $(KERNE
 $(foreach ver,$(COMPAT_VERSIONS),$(eval export CONFIG_COMPAT_KERNEL_$(ver)=y))
 endif
 
+ifeq ($(CONFIG_COMPAT_KERNEL_33),y)
+ CONFIG_COMPAT_FIRMWARE_CLASS=m
+ $(error "poo")
+endif
+
 obj-y += compat/
 
 # This hack lets us put our include path first than the kernel's
index e3560a7bc00bbd4815771cea55c917bc30e55271..9441ff9fddc48091b7866a691c0c3401281bb551 100644 (file)
@@ -1,7 +1,7 @@
 obj-m += compat.o
 #compat-objs :=
 
-obj-m += compat_firmware_class.o
+obj-$(CONFIG_COMPAT_FIRMWARE_CLASS) += compat_firmware_class.o
 
 compat-y += main.o