Commit 8fcf60e2 authored by Kai Germaschewski's avatar Kai Germaschewski

kbuild: Simplify linking subdirs in drivers/*/Makefile

Use the new

	obj-$(CONFIG_FOO) += foo/

syntax to descend into a subdir and link in the result, if
CONFIG_FOO=y.
parent 8f8e9b1d
...@@ -2,13 +2,6 @@ ...@@ -2,13 +2,6 @@
# Makefile for drivers/acorn/scsi # Makefile for drivers/acorn/scsi
# #
O_TARGET := acorn-scsi.o
obj-y :=
obj-m :=
obj-n :=
obj- :=
export-objs := fas216.o queue.o msgqueue.o export-objs := fas216.o queue.o msgqueue.o
acornscsi_mod-objs := acornscsi.o acornscsi-io.o acornscsi_mod-objs := acornscsi.o acornscsi-io.o
......
...@@ -182,14 +182,8 @@ obj-$(CONFIG_TOSHIBA) += toshiba.o ...@@ -182,14 +182,8 @@ obj-$(CONFIG_TOSHIBA) += toshiba.o
obj-$(CONFIG_I8K) += i8k.o obj-$(CONFIG_I8K) += i8k.o
obj-$(CONFIG_DS1620) += ds1620.o obj-$(CONFIG_DS1620) += ds1620.o
obj-$(CONFIG_INTEL_RNG) += i810_rng.o obj-$(CONFIG_INTEL_RNG) += i810_rng.o
obj-$(CONFIG_QIC02_TAPE) += tpqic02.o obj-$(CONFIG_QIC02_TAPE) += tpqic02.o
obj-$(CONFIG_FTAPE) += ftape/
subdir-$(CONFIG_FTAPE) += ftape
ifeq ($(CONFIG_FTAPE),y)
obj-y += ftape/ftape.o
endif
obj-$(CONFIG_H8) += h8.o obj-$(CONFIG_H8) += h8.o
obj-$(CONFIG_PPDEV) += ppdev.o obj-$(CONFIG_PPDEV) += ppdev.o
obj-$(CONFIG_DZ) += dz.o obj-$(CONFIG_DZ) += dz.o
...@@ -216,23 +210,10 @@ obj-$(CONFIG_MACHZ_WDT) += machzwd.o ...@@ -216,23 +210,10 @@ obj-$(CONFIG_MACHZ_WDT) += machzwd.o
obj-$(CONFIG_SH_WDT) += shwdt.o obj-$(CONFIG_SH_WDT) += shwdt.o
obj-$(CONFIG_EUROTECH_WDT) += eurotechwdt.o obj-$(CONFIG_EUROTECH_WDT) += eurotechwdt.o
obj-$(CONFIG_SOFT_WATCHDOG) += softdog.o obj-$(CONFIG_SOFT_WATCHDOG) += softdog.o
obj-$(CONFIG_MWAVE) += mwave/ obj-$(CONFIG_MWAVE) += mwave/
obj-$(CONFIG_AGP) += agp/
subdir-$(CONFIG_AGP) += agp obj-$(CONFIG_DRM) += drm/
ifeq ($(CONFIG_AGP),y) obj-$(CONFIG_PCMCIA) += pcmcia/
obj-y += agp/agp.o
endif
subdir-$(CONFIG_DRM) += drm
ifeq ($(CONFIG_DRM),y)
obj-y += drm/drm.o
endif
subdir-$(CONFIG_PCMCIA) += pcmcia
ifeq ($(CONFIG_PCMCIA),y)
obj-y += pcmcia/pcmcia_char.o
endif
include $(TOPDIR)/Rules.make include $(TOPDIR)/Rules.make
......
...@@ -3,8 +3,6 @@ ...@@ -3,8 +3,6 @@
# space ioctl interface to use agp memory. It also adds a kernel interface # space ioctl interface to use agp memory. It also adds a kernel interface
# that other drivers could use to manipulate agp memory. # that other drivers could use to manipulate agp memory.
O_TARGET := agp.o
export-objs := agpgart_be.o export-objs := agpgart_be.o
agpgart-objs := agpgart_fe.o agpgart_be.o agpgart-objs := agpgart_fe.o agpgart_be.o
......
...@@ -2,8 +2,6 @@ ...@@ -2,8 +2,6 @@
# Makefile for the drm device driver. This driver provides support for the # Makefile for the drm device driver. This driver provides support for the
# Direct Rendering Infrastructure (DRI) in XFree86 4.1.0 and higher. # Direct Rendering Infrastructure (DRI) in XFree86 4.1.0 and higher.
O_TARGET := drm.o
gamma-objs := gamma_drv.o gamma_dma.o gamma-objs := gamma_drv.o gamma_dma.o
tdfx-objs := tdfx_drv.o tdfx-objs := tdfx_drv.o
r128-objs := r128_drv.o r128_cce.o r128_state.o r128-objs := r128_drv.o r128_cce.o r128_state.o
......
...@@ -23,8 +23,6 @@ ...@@ -23,8 +23,6 @@
# Linux. # Linux.
# #
O_TARGET := ftape.o
obj-$(CONFIG_FTAPE) += lowlevel/ obj-$(CONFIG_FTAPE) += lowlevel/
obj-$(CONFIG_ZFTAPE) += zftape/ obj-$(CONFIG_ZFTAPE) += zftape/
obj-$(CONFIG_ZFT_COMPRESSOR) += compressor/ obj-$(CONFIG_ZFT_COMPRESSOR) += compressor/
......
...@@ -4,8 +4,6 @@ ...@@ -4,8 +4,6 @@
# Makefile for the Linux PCMCIA char device drivers. # Makefile for the Linux PCMCIA char device drivers.
# #
O_TARGET := pcmcia_char.o
obj-$(CONFIG_PCMCIA_SERIAL_CS) += serial_cs.o obj-$(CONFIG_PCMCIA_SERIAL_CS) += serial_cs.o
obj-$(CONFIG_SYNCLINK_CS) += synclink_cs.o obj-$(CONFIG_SYNCLINK_CS) += synclink_cs.o
......
...@@ -19,11 +19,7 @@ obj-$(CONFIG_INPUT_MOUSEDEV) += mousedev.o ...@@ -19,11 +19,7 @@ obj-$(CONFIG_INPUT_MOUSEDEV) += mousedev.o
obj-$(CONFIG_INPUT_JOYDEV) += joydev.o obj-$(CONFIG_INPUT_JOYDEV) += joydev.o
obj-$(CONFIG_INPUT_EVDEV) += evdev.o obj-$(CONFIG_INPUT_EVDEV) += evdev.o
subdir-$(CONFIG_INPUT_JOYSTICK) += joystick obj-$(CONFIG_INPUT_JOYSTICK) += joystick/
ifeq ($(CONFIG_INPUT_JOYSTICK),y)
obj-y += joystick/joydrv.o
endif
# The global Rules.make. # The global Rules.make.
......
...@@ -2,10 +2,6 @@ ...@@ -2,10 +2,6 @@
# Makefile for the input core drivers. # Makefile for the input core drivers.
# #
# The target object and module list name.
O_TARGET := joydrv.o
# I-Force may need both USB and RS-232 # I-Force may need both USB and RS-232
CONFIG_JOYSTICK_IFORCE := n CONFIG_JOYSTICK_IFORCE := n
......
...@@ -6,15 +6,8 @@ O_TARGET := message.o ...@@ -6,15 +6,8 @@ O_TARGET := message.o
mod-subdirs := i2o fusion mod-subdirs := i2o fusion
subdir-$(CONFIG_I2O) += i2o obj-$(CONFIG_I2O) += i2o/
ifeq ($(CONFIG_I2O),y) obj-$(CONFIG_FUSION) += fusion/
obj-y += i2o/i2o.o
endif
subdir-$(CONFIG_FUSION) += fusion
ifeq ($(CONFIG_FUSION),y)
obj-y += fusion/fusion.o
endif
include $(TOPDIR)/Rules.make include $(TOPDIR)/Rules.make
...@@ -43,8 +43,6 @@ EXTRA_CFLAGS += -I. ${MPT_CFLAGS} ...@@ -43,8 +43,6 @@ EXTRA_CFLAGS += -I. ${MPT_CFLAGS}
#=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-} LSI_LOGIC #=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-} LSI_LOGIC
O_TARGET := fusion.o
export-objs := mptbase.o mptscsih.o mptlan.o mptctl.o isense.o export-objs := mptbase.o mptscsih.o mptlan.o mptctl.o isense.o
obj-$(CONFIG_FUSION) += mptbase.o mptscsih.o obj-$(CONFIG_FUSION) += mptbase.o mptscsih.o
......
...@@ -5,8 +5,6 @@ ...@@ -5,8 +5,6 @@
# In the future, some of these should be built conditionally. # In the future, some of these should be built conditionally.
# #
O_TARGET := i2o.o
export-objs := i2o_pci.o i2o_core.o i2o_config.o i2o_block.o i2o_lan.o i2o_scsi.o i2o_proc.o export-objs := i2o_pci.o i2o_core.o i2o_config.o i2o_block.o i2o_lan.o i2o_scsi.o i2o_proc.o
obj-$(CONFIG_I2O_PCI) += i2o_pci.o obj-$(CONFIG_I2O_PCI) += i2o_pci.o
......
...@@ -25,10 +25,8 @@ export-objs := scsi_syms.o 53c700.o ...@@ -25,10 +25,8 @@ export-objs := scsi_syms.o 53c700.o
mod-subdirs := pcmcia ../acorn/scsi mod-subdirs := pcmcia ../acorn/scsi
subdir-$(CONFIG_SCSI_AIC7XXX) += aic7xxx
subdir-$(CONFIG_PCMCIA) += pcmcia subdir-$(CONFIG_PCMCIA) += pcmcia
obj-$(CONFIG_SCSI) += scsi_mod.o obj-$(CONFIG_SCSI) += scsi_mod.o
obj-$(CONFIG_A4000T_SCSI) += amiga7xx.o 53c7xx.o obj-$(CONFIG_A4000T_SCSI) += amiga7xx.o 53c7xx.o
...@@ -64,9 +62,7 @@ obj-$(CONFIG_SCSI_ULTRASTOR) += ultrastor.o ...@@ -64,9 +62,7 @@ obj-$(CONFIG_SCSI_ULTRASTOR) += ultrastor.o
obj-$(CONFIG_SCSI_AHA152X) += aha152x.o obj-$(CONFIG_SCSI_AHA152X) += aha152x.o
obj-$(CONFIG_SCSI_AHA1542) += aha1542.o obj-$(CONFIG_SCSI_AHA1542) += aha1542.o
obj-$(CONFIG_SCSI_AHA1740) += aha1740.o obj-$(CONFIG_SCSI_AHA1740) += aha1740.o
ifeq ($(CONFIG_SCSI_AIC7XXX),y) obj-$(CONFIG_SCSI_AIC7XXX) += aic7xxx/
obj-$(CONFIG_SCSI_AIC7XXX) += aic7xxx/aic7xxx_drv.o
endif
obj-$(CONFIG_SCSI_AIC7XXX_OLD) += aic7xxx_old.o obj-$(CONFIG_SCSI_AIC7XXX_OLD) += aic7xxx_old.o
obj-$(CONFIG_SCSI_IPS) += ips.o obj-$(CONFIG_SCSI_IPS) += ips.o
obj-$(CONFIG_SCSI_FD_MCS) += fd_mcs.o obj-$(CONFIG_SCSI_FD_MCS) += fd_mcs.o
...@@ -87,10 +83,7 @@ obj-$(CONFIG_SCSI_T128) += t128.o ...@@ -87,10 +83,7 @@ obj-$(CONFIG_SCSI_T128) += t128.o
obj-$(CONFIG_SCSI_DMX3191D) += dmx3191d.o obj-$(CONFIG_SCSI_DMX3191D) += dmx3191d.o
obj-$(CONFIG_SCSI_DTC3280) += dtc.o obj-$(CONFIG_SCSI_DTC3280) += dtc.o
obj-$(CONFIG_SCSI_NCR53C7xx) += 53c7,8xx.o obj-$(CONFIG_SCSI_NCR53C7xx) += 53c7,8xx.o
subdir-$(CONFIG_SCSI_SYM53C8XX_2) += sym53c8xx_2 obj-$(CONFIG_SCSI_SYM53C8XX_2) += sym53c8xx_2/
ifeq ($(CONFIG_SCSI_SYM53C8XX_2),y)
obj-$(CONFIG_SCSI_SYM53C8XX_2) += sym53c8xx_2/sym53c8xx_2.o
endif
obj-$(CONFIG_SCSI_SYM53C8XX) += sym53c8xx.o obj-$(CONFIG_SCSI_SYM53C8XX) += sym53c8xx.o
obj-$(CONFIG_SCSI_NCR53C8XX) += ncr53c8xx.o obj-$(CONFIG_SCSI_NCR53C8XX) += ncr53c8xx.o
obj-$(CONFIG_SCSI_EATA_DMA) += eata_dma.o obj-$(CONFIG_SCSI_EATA_DMA) += eata_dma.o
...@@ -123,8 +116,7 @@ obj-$(CONFIG_SCSI_FCAL) += fcal.o ...@@ -123,8 +116,7 @@ obj-$(CONFIG_SCSI_FCAL) += fcal.o
obj-$(CONFIG_SCSI_CPQFCTS) += cpqfc.o obj-$(CONFIG_SCSI_CPQFCTS) += cpqfc.o
obj-$(CONFIG_SCSI_LASI700) += lasi700.o 53c700.o obj-$(CONFIG_SCSI_LASI700) += lasi700.o 53c700.o
subdir-$(CONFIG_ARCH_ACORN) += ../acorn/scsi obj-$(CONFIG_ARCH_ACORN) += ../acorn/scsi/
obj-$(CONFIG_ARCH_ACORN) += ../acorn/scsi/acorn-scsi.o
obj-$(CONFIG_CHR_DEV_ST) += st.o obj-$(CONFIG_CHR_DEV_ST) += st.o
obj-$(CONFIG_CHR_DEV_OSST) += osst.o obj-$(CONFIG_CHR_DEV_OSST) += osst.o
......
...@@ -2,8 +2,6 @@ ...@@ -2,8 +2,6 @@
# Makefile for the Linux aic7xxx SCSI driver. # Makefile for the Linux aic7xxx SCSI driver.
# #
O_TARGET := aic7xxx_drv.o
obj-$(CONFIG_SCSI_AIC7XXX) += aic7xxx.o obj-$(CONFIG_SCSI_AIC7XXX) += aic7xxx.o
# Core files # Core files
......
# Makefile for the NCR/SYMBIOS/LSI 53C8XX PCI SCSI controllers driver. # Makefile for the NCR/SYMBIOS/LSI 53C8XX PCI SCSI controllers driver.
O_TARGET := sym53c8xx_2.o
sym53c8xx-objs := sym_fw.o sym_glue.o sym_hipd.o sym_malloc.o sym_misc.o sym_nvram.o sym53c8xx-objs := sym_fw.o sym_glue.o sym_hipd.o sym_malloc.o sym_misc.o sym_nvram.o
obj-$(CONFIG_SCSI_SYM53C8XX_2) := sym53c8xx.o obj-$(CONFIG_SCSI_SYM53C8XX_2) := sym53c8xx.o
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment