summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMasahiro Yamada <[email protected]>2013-10-21 11:53:24 +0900
committerTom Rini <[email protected]>2013-10-31 13:26:44 -0400
commit9f414a3ab1537ed52b57a63723ff07661f6cbae1 (patch)
tree4b47726bd30e56feb00f99520eaed6ce4523528d
parent09ab61c660726e94550d0a5d2fbef11bed2cf924 (diff)
sparc: fix a link error
Before this commit, arch/sparc/lib/Makefile used both COBJS and COBJS-y. And it missed to add COBJS-y into OBJS. This means bootm.o was never compiled even if CONFIG_CMD_BOOTM=y Signed-off-by: Masahiro Yamada <[email protected]> Cc: Daniel Hellstrom <[email protected]>
-rw-r--r--arch/sparc/lib/Makefile2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/sparc/lib/Makefile b/arch/sparc/lib/Makefile
index 7e78d447549..9914e352690 100644
--- a/arch/sparc/lib/Makefile
+++ b/arch/sparc/lib/Makefile
@@ -14,6 +14,8 @@ SOBJS =
COBJS = board.o cache.o interrupts.o time.o
COBJS-$(CONFIG_CMD_BOOTM) += bootm.o
+COBJS := $(COBJS) $(COBJS-y)
+
SRCS := $(SOBJS:.o=.S) $(COBJS:.o=.c)
OBJS := $(addprefix $(obj),$(SOBJS) $(COBJS))