patch-2.1.93 linux/drivers/pci/Makefile

Next file: linux/drivers/pci/compat.c
Previous file: linux/drivers/net/tulip.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.92/linux/drivers/pci/Makefile linux/drivers/pci/Makefile
@@ -9,9 +9,18 @@
 # parent makefile.
 #
 
-L_OBJS   := pci.o
 L_TARGET := pci.a
 
+# Nasty trick as nobody references pcisyms.o, but we still want it linked.
+ifeq ($(CONFIG_MODULES),y)
+O_TARGET = pci_syms.o
+OX_OBJS  = pcisyms.o
+O_OBJS   = pci.o
+L_OBJS   := pci_syms.o
+else
+L_OBJS   := pci.o
+endif
+
 ifdef CONFIG_PROC_FS
 L_OBJS   += proc.o
 ifdef CONFIG_PCI_OLD_PROC
@@ -22,5 +31,7 @@
 ifdef CONFIG_PCI_OPTIMIZE
 L_OBJS   += quirks.o
 endif
+
+L_OBJS   += compat.o
 
 include $(TOPDIR)/Rules.make

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