[PATCH 2.4] hotplug: Don't build cpqphp_proc.o if !PROC_FS
From: Joshua Kwan
Date: Sat Sep 18 2004 - 02:21:54 EST
Hello,
This simple patch to drivers/hotplug/Makefile eliminates a build failure
for cpqphp if CONFIG_PROC_FS is disabled. Herbert Xu originally wrote
this patch.
Marcelo, please apply.
(Note: does not apply to 2.6 because stuff seems to have switched to
sysfs there.)
Signed-off-by: Joshua Kwan <joshk@xxxxxxxxxxxxxxx>
--
Joshua Kwan
# origin: Debian (herbert)
# cset: n/a
# inclusion: not submitted
# description: don't build cpqphp_proc.o if !PROC_FS
# revision date: 2004-09-05
diff -urN kernel-source-2.4.26/drivers/hotplug/Makefile kernel-source-2.4.26-1/drivers/hotplug/Makefile
--- kernel-source-2.4.26/drivers/hotplug/Makefile 2003-08-25 21:44:41.000000000 +1000
+++ kernel-source-2.4.26-1/drivers/hotplug/Makefile 2004-04-17 08:17:42.000000000 +1000
@@ -18,7 +18,6 @@
cpqphp-objs := cpqphp_core.o \
cpqphp_ctrl.o \
- cpqphp_proc.o \
cpqphp_pci.o
ibmphp-objs := ibmphp_core.o \
@@ -36,5 +35,9 @@
cpqphp-objs += cpqphp_nvram.o
endif
+ifeq ($(CONFIG_PROC_FS),y)
+ cpqphp-objs += cpqphp_proc.o
+endif
+
include $(TOPDIR)/Rules.make
Attachment:
signature.asc
Description: Digital signature