summaryrefslogtreecommitdiff
path: root/board/stxgp3/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'board/stxgp3/Makefile')
-rw-r--r--board/stxgp3/Makefile12
1 files changed, 8 insertions, 4 deletions
diff --git a/board/stxgp3/Makefile b/board/stxgp3/Makefile
index 325d6d57221..5a68f11e7d0 100644
--- a/board/stxgp3/Makefile
+++ b/board/stxgp3/Makefile
@@ -25,10 +25,14 @@ include $(TOPDIR)/config.mk
LIB = $(obj)lib$(BOARD).a
-COBJS := $(BOARD).o flash.o law.o tlb.o
-
-SRCS := $(SOBJS:.o=.S) $(COBJS:.o=.c)
-OBJS := $(addprefix $(obj),$(COBJS))
+COBJS-y += $(BOARD).o
+COBJS-y += law.o
+COBJS-y += tlb.o
+COBJS-y += flash.o
+COBJS-$(CONFIG_FSL_DDR1) += ddr.o
+
+SRCS := $(SOBJS:.o=.S) $(COBJS-y:.o=.c)
+OBJS := $(addprefix $(obj),$(COBJS-y))
SOBJS := $(addprefix $(obj),$(SOBJS))
$(LIB): $(obj).depend $(OBJS) $(SOBJS)