summaryrefslogtreecommitdiff
path: root/disk/Makefile
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2009-01-29 20:02:07 -0500
committerWolfgang Denk <wd@denx.de>2009-02-18 00:50:51 +0100
commit7bd2722e890bc877a3c057d7ccddc80451c99939 (patch)
tree2d5fc7c352117c0c76ffc0c8dce2fc7d59eac6eb /disk/Makefile
parentf05fa9205e04986176dc7ab8b710bcb5fbe9f338 (diff)
disk: convert part_* files to COBJ-$(CONFIG_XXX) style
Move the CONFIG_XXX out of the part_XXX.c file and into Makefile to avoid pointless compiles. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Diffstat (limited to 'disk/Makefile')
-rw-r--r--disk/Makefile10
1 files changed, 5 insertions, 5 deletions
diff --git a/disk/Makefile b/disk/Makefile
index c4791451c4..128db77df6 100644
--- a/disk/Makefile
+++ b/disk/Makefile
@@ -28,11 +28,11 @@ include $(TOPDIR)/config.mk
LIB = $(obj)libdisk.a
COBJS-y += part.o
-COBJS-y += part_mac.o
-COBJS-y += part_dos.o
-COBJS-y += part_iso.o
-COBJS-y += part_amiga.o
-COBJS-y += part_efi.o
+COBJS-$(CONFIG_MAC_PARTITION) += part_mac.o
+COBJS-$(CONFIG_DOS_PARTITION) += part_dos.o
+COBJS-$(CONFIG_ISO_PARTITION) += part_iso.o
+COBJS-$(CONFIG_AMIGA_PARTITION) += part_amiga.o
+COBJS-$(CONFIG_EFI_PARTITION) += part_efi.o
COBJS := $(COBJS-y)
SRCS := $(COBJS:.o=.c)