ARM: 7671/1: use Kconfig to select uncompress.h
authorShawn Guo <shawn.guo@linaro.org>
Thu, 14 Mar 2013 07:47:27 +0000 (08:47 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Fri, 15 Mar 2013 17:18:51 +0000 (17:18 +0000)
commit615967b00fecc9e636dc59bf1ee322274f7dd041
tree7983efe8f151ea8decb91c219b4b61ee8dec2d6a
parentf6161aa153581da4a3867a2d1a7caf4be19b6ec9
ARM: 7671/1: use Kconfig to select uncompress.h

Following the approach handling DEBUG_LL inclusion, the patch creates
a Kconfig symbol CONFIG_UNCOMPRESS_INCLUDE for choosing the correct
uncompress header.  For traditional build, mach/uncompress.h will be
included in arch/arm/boot/compressed/misc.c.  For multiplatform build,
debug/uncompress.h which contains a suite of empty functions will be
used.  In this way, a platform with particular uncompress.h
implementation could choose its own uncompress.h with this Kconfig
option.

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/misc.c
arch/arm/include/debug/uncompress.h [new file with mode: 0644]