ARM: 9009/1: uncompress: Enable debug in head.S
authorLinus Walleij <linus.walleij@linaro.org>
Fri, 4 Sep 2020 08:07:41 +0000 (09:07 +0100)
committerRussell King <rmk+kernel@armlinux.org.uk>
Tue, 15 Sep 2020 13:35:31 +0000 (14:35 +0100)
The assembly file head.S includes some debug code that does
not get enabled when we select CONFIG_DEBUG_UNCOMPRESS.
The debug in head.S relies on the user tagging on -DDEBUG
on the compilation command line.

To simplify debugging, tag on -DDEBUG so that we also get
these debug messages when selecting CONFIG_DEBUG_UNCOMPRESS.

Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk>
arch/arm/boot/compressed/Makefile

index b1147b7..77799e5 100644 (file)
@@ -12,6 +12,7 @@ HEAD  = head.o
 OBJS   += misc.o decompress.o
 ifeq ($(CONFIG_DEBUG_UNCOMPRESS),y)
 OBJS   += debug.o
+AFLAGS_head.o += -DDEBUG
 endif
 FONTC  = $(srctree)/lib/fonts/font_acorn_8x8.c