]> git.hungrycats.org Git - linux/commitdiff
kbuild: Remove usage of L_TARGET in drivers/*
authorKai Germaschewski <kai@tp1.ruhr-uni-bochum.de>
Fri, 24 May 2002 12:29:22 +0000 (07:29 -0500)
committerKai Germaschewski <kai@tp1.ruhr-uni-bochum.de>
Fri, 24 May 2002 12:29:22 +0000 (07:29 -0500)
We use O_TARGET everywhere else, so let's just convert the remaining
users (They get the implicit built-in.o O_TARGET now)

Makefile
drivers/block/paride/Makefile
drivers/dio/Makefile
drivers/fc4/Makefile
drivers/nubus/Makefile
drivers/sgi/Makefile
include/linux/usb.h

index 3e6238667ae892d97d43e8d12f7f14a3e57641f7..88a3909e9f3371174e87cf44ddba03a7c229a6e0 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -124,10 +124,10 @@ DRIVERS-y += drivers/base/base.o \
        drivers/misc/misc.o \
        drivers/net/net.o \
        drivers/media/media.o
-DRIVERS-$(CONFIG_NUBUS) += drivers/nubus/nubus.a
+DRIVERS-$(CONFIG_NUBUS) += drivers/nubus/built-in.o
 DRIVERS-$(CONFIG_ATM) += drivers/atm/atm.o
 DRIVERS-$(CONFIG_IDE) += drivers/ide/idedriver.o
-DRIVERS-$(CONFIG_FC4) += drivers/fc4/fc4.a
+DRIVERS-$(CONFIG_FC4) += drivers/fc4/built-in.o
 DRIVERS-$(CONFIG_SCSI) += drivers/scsi/scsidrv.o
 DRIVERS-$(CONFIG_FUSION) += drivers/message/message.o
 DRIVERS-$(CONFIG_IEEE1394) += drivers/ieee1394/ieee1394drv.o
@@ -139,16 +139,16 @@ endif
 DRIVERS-$(CONFIG_SOUND) += sound/sound.o
 DRIVERS-$(CONFIG_MTD) += drivers/mtd/mtdlink.o
 DRIVERS-$(CONFIG_PCMCIA) += drivers/pcmcia/pcmcia.o
-DRIVERS-$(CONFIG_DIO) += drivers/dio/dio.a
+DRIVERS-$(CONFIG_DIO) += drivers/dio/built-in.o
 DRIVERS-$(CONFIG_SBUS) += drivers/sbus/sbus_all.o
 DRIVERS-$(CONFIG_ZORRO) += drivers/zorro/driver.o
 DRIVERS-$(CONFIG_ALL_PPC) += drivers/macintosh/macintosh.o
 DRIVERS-$(CONFIG_MAC) += drivers/macintosh/macintosh.o
 DRIVERS-$(CONFIG_PNP) += drivers/pnp/pnp.o
-DRIVERS-$(CONFIG_SGI_IP22) += drivers/sgi/sgi.a
+DRIVERS-$(CONFIG_SGI_IP22) += drivers/sgi/built-in.o
 DRIVERS-$(CONFIG_VT) += drivers/video/video.o
-DRIVERS-$(CONFIG_PARIDE) += drivers/block/paride/paride.a
-DRIVERS-$(CONFIG_TC) += drivers/tc/tc.a
+DRIVERS-$(CONFIG_PARIDE) += drivers/block/paride/built-in.o
+DRIVERS-$(CONFIG_TC) += drivers/tc/built-in.o
 DRIVERS-$(CONFIG_USB) += drivers/usb/usbdrv.o
 DRIVERS-$(CONFIG_INPUT) += drivers/input/inputdrv.o
 DRIVERS-$(CONFIG_GAMEPORT) += drivers/input/gameport/gamedrv.o
index dc49e4113d414c778b72ebf31b4bda6bf653ac22..d62c39cb9b55f8f1b7b5ea2ccd1b50d46fb19ec1 100644 (file)
@@ -5,8 +5,6 @@
 # Rewritten to use lists instead of if-statements.
 #
 
-L_TARGET := paride.a
-
 export-objs := paride.o bpck6.o
 
 obj-$(CONFIG_PARIDE)           += paride.o
index 48d3522a78753791808af10a0b464e73d69bcf10..522b2e25ba8cd82a745cc31a90bacc8d85aff0ad 100644 (file)
@@ -1,19 +1,7 @@
 #
 # Makefile for the linux kernel.
 #
-# Note! Dependencies are done automagically by 'make dep', which also
-# removes any old dependencies. DON'T put your own dependencies here
-# unless it's something special (ie not a .c file).
-#
-# Note 2! The CFLAGS definitions are now in the main makefile...
-#
-# NB: cribbed from the drivers/sbus/Makefile -- PMM
-
-SUB_DIRS     :=
-MOD_SUB_DIRS := $(SUB_DIRS)
-ALL_SUB_DIRS := $(SUB_DIRS)
 
-L_OBJS   := dio.o
-L_TARGET := dio.a
+obj-y := dio.o
 
 include $(TOPDIR)/Rules.make
index 6fc3c1f58004de3273407591750a4ab955a85dc4..37b66772421c8c17c16335ef346bfc73ab3b7e00 100644 (file)
@@ -2,8 +2,6 @@
 # Makefile for the Linux Fibre Channel device drivers.
 #
 
-L_TARGET := fc4.a
-
 export-objs := fc_syms.o
 
 fc4-objs := fc.o fc_syms.o
index 4df102258028fa3d7b1c18f64318d746df0c4815..2a41129a0c4071fb24d7b33def09a57250634431 100644 (file)
@@ -1,15 +1,6 @@
 #
 # Makefile for the nubus specific drivers.
 #
-# Note! Dependencies are done automagically by 'make dep', which also
-# removes any old dependencies. DON'T put your own dependencies here
-# unless it's something special (ie not a .c file).
-#
-# Note 2! The CFLAGS definition is now inherited from the
-# parent makefile.
-#
-
-L_TARGET := nubus.a
 
 export-objs := nubus_syms.o
 
index 2b42fcd453a816536bc1f2a11613e54c5273b0d4..f5cc50a63c3792029e4d0f691097ca2a01178086 100644 (file)
@@ -1,13 +1,6 @@
 #
 # Makefile for the linux kernel.
 #
-# Note! Dependencies are done automagically by 'make dep', which also
-# removes any old dependencies. DON'T put your own dependencies here
-# unless it's something special (ie not a .c file).
-#
-# Note 2! The CFLAGS definitions are now in the main makefile...
-
-L_TARGET := sgi.a
 
 #
 # Character and Audio devices for SGI machines.
index cd0067056e38295aba2332f6c62a387970db194b..498a1c7fae671d3c755ac7638e508d75333815a9 100644 (file)
@@ -99,6 +99,7 @@
 #ifdef __KERNEL__
 
 #include <linux/config.h>
+#include <linux/errno.h>
 #include <linux/delay.h>       /* for mdelay() */
 #include <linux/interrupt.h>   /* for in_interrupt() */
 #include <linux/list.h>                /* for struct list_head */