From: Luis R. Rodriguez Date: Thu, 14 Jan 2010 01:35:29 +0000 (-0800) Subject: Enable the compat_firmware_class to be built only on < 2.6.32 X-Git-Tag: compat-linux-2.6.34.y~37 X-Git-Url: https://openfabrics.org/gitweb/?a=commitdiff_plain;h=8bab166decfbaf87e5052bc24b96f238becffe0e;p=~emulex%2Ftmp%2Fcompat%2F.git Enable the compat_firmware_class to be built only on < 2.6.32 Signed-off-by: Luis R. Rodriguez --- diff --git a/Makefile b/Makefile index 0d4bd66..06983c9 100644 --- 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 diff --git a/compat/Makefile b/compat/Makefile index e3560a7..9441ff9 100644 --- a/compat/Makefile +++ b/compat/Makefile @@ -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