diff options
author | Shawn Guo <shawn.guo@linaro.org> | 2013-03-14 03:48:06 -0400 |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2013-03-15 13:18:52 -0400 |
commit | 3b4af9bc24472a9411837ad0794312028df1fbd9 (patch) | |
tree | 083cc2f00a97eae2ec968eeebb561b72e21aa5bc /arch/arm/Kconfig.debug | |
parent | 615967b00fecc9e636dc59bf1ee322274f7dd041 (diff) |
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>
Diffstat (limited to 'arch/arm/Kconfig.debug')
-rw-r--r-- | arch/arm/Kconfig.debug | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/arch/arm/Kconfig.debug b/arch/arm/Kconfig.debug index fc54a5bcf5ab..7aa30e43cb8e 100644 --- a/arch/arm/Kconfig.debug +++ b/arch/arm/Kconfig.debug | |||
@@ -601,6 +601,12 @@ config DEBUG_LL_INCLUDE | |||
601 | default "debug/zynq.S" if DEBUG_ZYNQ_UART0 || DEBUG_ZYNQ_UART1 | 601 | default "debug/zynq.S" if DEBUG_ZYNQ_UART0 || DEBUG_ZYNQ_UART1 |
602 | default "mach/debug-macro.S" | 602 | default "mach/debug-macro.S" |
603 | 603 | ||
604 | config DEBUG_UNCOMPRESS | ||
605 | bool | ||
606 | default y if ARCH_MULTIPLATFORM && DEBUG_LL && \ | ||
607 | !DEBUG_OMAP2PLUS_UART && \ | ||
608 | !DEBUG_TEGRA_UART | ||
609 | |||
604 | config UNCOMPRESS_INCLUDE | 610 | config UNCOMPRESS_INCLUDE |
605 | string | 611 | string |
606 | default "debug/uncompress.h" if ARCH_MULTIPLATFORM | 612 | default "debug/uncompress.h" if ARCH_MULTIPLATFORM |