patch-2.1.36 linux/drivers/pnp/Makefile

Next file: linux/drivers/pnp/TODO-parport
Previous file: linux/drivers/pnp/BUGS-parport
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.35/linux/drivers/pnp/Makefile linux/drivers/pnp/Makefile
@@ -23,14 +23,20 @@
 MIX_OBJS :=
 
 ifeq ($(CONFIG_PNP_PARPORT),y)
-  L_OBJS += parport_share.o parport_procfs.o
+  L_OBJS += parport_share.o
+  ifeq ($(CONFIG_PROC_FS),y)
+    L_OBJS += parport_procfs.o
+  endif
   ifeq ($(CONFIG_PNP_PARPORT_AUTOPROBE),y)
     L_OBJS += parport_probe.o
   endif
   LX_OBJS += parport_init.o
 else
   ifeq ($(CONFIG_PNP_PARPORT),m)
-    MI_OBJS += parport_share.o parport_procfs.o
+    MI_OBJS += parport_share.o
+    ifneq ($(CONFIG_PROC_FS),n) 
+      MI_OBJS += parport_procfs.o
+    endif
     ifeq ($(CONFIG_PNP_PARPORT_AUTOPROBE),y)
       MI_OBJS += parport_probe.o
     endif

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov