projects
/
oweals
/
u-boot.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
drivers/block: Move conditional compilation to Makefile
[oweals/u-boot.git]
/
drivers
/
block
/
Makefile
diff --git
a/drivers/block/Makefile
b/drivers/block/Makefile
index dca3547919e6fe9227bc347d483927f9b5aa475f..642582b08819dd6629a6290b5f248d11d032eeba 100644
(file)
--- a/
drivers/block/Makefile
+++ b/
drivers/block/Makefile
@@
-23,19
+23,20
@@
include $(TOPDIR)/config.mk
include $(TOPDIR)/config.mk
-LIB := $(obj)libblock.a
+LIB := $(obj)libblock.a
-COBJS-
y
+= ahci.o
-COBJS-
y
+= ata_piix.o
+COBJS-
$(CONFIG_SCSI_AHCI)
+= ahci.o
+COBJS-
$(CONFIG_ATA_PIIX)
+= ata_piix.o
COBJS-$(CONFIG_FSL_SATA) += fsl_sata.o
COBJS-$(CONFIG_LIBATA) += libata.o
COBJS-$(CONFIG_FSL_SATA) += fsl_sata.o
COBJS-$(CONFIG_LIBATA) += libata.o
-COBJS-y += sil680.o
-COBJS-y += sym53c8xx.o
-COBJS-y += systemace.o
+COBJS-$(CONFIG_SATA_SIL3114) += sata_sil3114.o
+COBJS-$(CONFIG_IDE_SIL680) += sil680.o
+COBJS-$(CONFIG_SCSI_SYM53C8XX) += sym53c8xx.o
+COBJS-$(CONFIG_SYSTEMACE) += systemace.o
COBJS := $(COBJS-y)
COBJS := $(COBJS-y)
-SRCS := $(COBJS:.o=.c)
-OBJS := $(addprefix $(obj),$(COBJS))
+SRCS := $(COBJS:.o=.c)
+OBJS := $(addprefix $(obj),$(COBJS))
all: $(LIB)
all: $(LIB)