ARM: 7672/1: uncompress debug support for multiplatform build
authorShawn Guo <shawn.guo@linaro.org>
Thu, 14 Mar 2013 07:48:06 +0000 (08:48 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Fri, 15 Mar 2013 17:18:52 +0000 (17:18 +0000)
commit3b4af9bc24472a9411837ad0794312028df1fbd9
tree083cc2f00a97eae2ec968eeebb561b72e21aa5bc
parent615967b00fecc9e636dc59bf1ee322274f7dd041
ARM: 7672/1: uncompress debug support for multiplatform build

Instead of giving zero support of uncompress debug for multiplatform
build, the patch turns uncompress debug into one part of DEBUG_LL
support.  When DEBUG_LL is turned on for a particular platform,
uncompress debug works too for that platform.

OMAP and Tegra are exceptions here.  OMAP low-level debug code places
data in the .data section, and that is not allowed in decompressor.
And Tegra code has reference to variable that's unavailable in
decompressor but only in kernel.  That's why Kconfig symbol
DEBUG_UNCOMPRESS controlling multiplatform uncompress debug support is
defined with !DEBUG_OMAP2PLUS_UART && !DEBUG_TEGRA_UART.

It creates arch/arm/boot/compressed/debug.S with CONFIG_DEBUG_LL_INCLUDE
included there, implements a generic putc() using those macros, which
will be built when DEBUG_UNCOMPRESS is defined.

Signed-off-by: Shawn Guo <shawn.guo@linaro.org>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/Kconfig.debug
arch/arm/boot/compressed/Makefile
arch/arm/boot/compressed/debug.S [new file with mode: 0644]
arch/arm/include/debug/uncompress.h