Only build compat_firmware_class if CONFIG_FW_LOADER was enabled
authorLuis R. Rodriguez <lrodriguez@atheros.com>
Tue, 19 Jan 2010 23:57:10 +0000 (15:57 -0800)
committerLuis R. Rodriguez <lrodriguez@atheros.com>
Tue, 19 Jan 2010 23:57:10 +0000 (15:57 -0800)
This prevents bothering with building compat_firmware_class if your
kernel lacks CONFIG_FW_LOADER support.

Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
Makefile

index 4843869..be2fdc5 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -19,8 +19,10 @@ $(foreach ver,$(COMPAT_VERSIONS),$(eval export CONFIG_COMPAT_KERNEL_$(ver)=y))
 endif
 
 ifeq ($(CONFIG_COMPAT_KERNEL_33),y)
+ifneq ($(CONFIG_FW_LOADER),)
  export CONFIG_COMPAT_FIRMWARE_CLASS=m
 endif
+endif
 
 obj-y += compat/