Skip to content

Commit aae7e8d

Browse files
Manuel Laussralfbaechle
authored andcommitted
MIPS: Alchemy: debug output for compressed kernels
Hook up the compressed debug output for all Alchemy systems supported by current kernel codebase. Signed-off-by: Manuel Lauss <manuel.lauss@gmail.com> To: Linux-MIPS <linux-mips@linux-mips.org> Cc: Wu Zhangjin <wuzhangjin@gmail.com> Patchwork: http://patchwork.linux-mips.org/patch/879/ Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
1 parent 780019d commit aae7e8d

2 files changed

Lines changed: 8 additions & 0 deletions

File tree

‎arch/mips/boot/compressed/Makefile‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ KBUILD_AFLAGS := $(LINUXINCLUDE) $(KBUILD_AFLAGS) -D__ASSEMBLY__ \
3636
obj-y := $(obj)/head.o $(obj)/decompress.o $(obj)/dbg.o
3737

3838
obj-$(CONFIG_SYS_SUPPORTS_ZBOOT_UART16550) += $(obj)/uart-16550.o
39+
obj-$(CONFIG_MACH_ALCHEMY) += $(obj)/uart-alchemy.o
3940

4041
OBJCOPYFLAGS_vmlinux.bin := $(OBJCOPYFLAGS) -O binary -R .comment -S
4142
$(obj)/vmlinux.bin: $(KBUILD_IMAGE)
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
#include <asm/mach-au1x00/au1000.h>
2+
3+
void putc(char c)
4+
{
5+
/* all current (Jan. 2010) in-kernel boards */
6+
alchemy_uart_putchar(UART0_PHYS_ADDR, c);
7+
}

0 commit comments

Comments
 (0)