summaryrefslogtreecommitdiff
path: root/cpu/blackfin/Makefile
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2008-10-11 21:51:20 -0400
committerMike Frysinger <vapier@gentoo.org>2009-01-28 13:26:15 -0500
commit36ea8e9ad1107af12d244bba8c73e85b9f655e45 (patch)
treeea8234ea20bc09e657c0851405388d7c1362b456 /cpu/blackfin/Makefile
parentcf8f2efb5f39c5225da92391c14a07eecbeca881 (diff)
downloadu-boot-imx-36ea8e9ad1107af12d244bba8c73e85b9f655e45.zip
u-boot-imx-36ea8e9ad1107af12d244bba8c73e85b9f655e45.tar.gz
u-boot-imx-36ea8e9ad1107af12d244bba8c73e85b9f655e45.tar.bz2
Blackfin: support console-over-JTAG
The Blackfin JTAG has the ability to pass data via a back-channel without halting the processor. Utilize that channel to emulate a console. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Diffstat (limited to 'cpu/blackfin/Makefile')
-rw-r--r--cpu/blackfin/Makefile9
1 files changed, 5 insertions, 4 deletions
diff --git a/cpu/blackfin/Makefile b/cpu/blackfin/Makefile
index b90fb48..b4049ff 100644
--- a/cpu/blackfin/Makefile
+++ b/cpu/blackfin/Makefile
@@ -17,14 +17,15 @@ EXTRA :=
CEXTRA := initcode.o
SEXTRA := start.o
SOBJS := interrupt.o cache.o
-COBJS := cpu.o traps.o interrupts.o reset.o serial.o watchdog.o
+COBJS-y := cpu.o traps.o interrupts.o reset.o serial.o watchdog.o
+COBJS-$(CONFIG_JTAG_CONSOLE) += jtag-console.o
ifeq ($(CONFIG_BFIN_BOOT_MODE),BFIN_BOOT_BYPASS)
-COBJS += initcode.o
+COBJS-y += initcode.o
endif
-SRCS := $(SEXTRA:.o=.S) $(SOBJS:.o=.S) $(COBJS:.o=.c)
-OBJS := $(addprefix $(obj),$(COBJS) $(SOBJS))
+SRCS := $(SEXTRA:.o=.S) $(SOBJS:.o=.S) $(COBJS-y:.o=.c)
+OBJS := $(addprefix $(obj),$(COBJS-y) $(SOBJS))
EXTRA := $(addprefix $(obj),$(EXTRA))
CEXTRA := $(addprefix $(obj),$(CEXTRA))
SEXTRA := $(addprefix $(obj),$(SEXTRA))