summaryrefslogtreecommitdiffstats
path: root/arch/arm/boot/compressed
diff options
context:
space:
mode:
authorShawn Guo2013-03-14 08:47:27 +0100
committerRussell King2013-03-15 18:18:51 +0100
commit615967b00fecc9e636dc59bf1ee322274f7dd041 (patch)
tree7983efe8f151ea8decb91c219b4b61ee8dec2d6a /arch/arm/boot/compressed
parentLinux 3.9-rc2 (diff)
downloadkernel-qcow2-linux-615967b00fecc9e636dc59bf1ee322274f7dd041.tar.gz
kernel-qcow2-linux-615967b00fecc9e636dc59bf1ee322274f7dd041.tar.xz
kernel-qcow2-linux-615967b00fecc9e636dc59bf1ee322274f7dd041.zip
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>
Diffstat (limited to 'arch/arm/boot/compressed')
-rw-r--r--arch/arm/boot/compressed/misc.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/arch/arm/boot/compressed/misc.c b/arch/arm/boot/compressed/misc.c
index df899834d84e..31bd43b82095 100644
--- a/arch/arm/boot/compressed/misc.c
+++ b/arch/arm/boot/compressed/misc.c
@@ -25,13 +25,7 @@ unsigned int __machine_arch_type;
static void putstr(const char *ptr);
extern void error(char *x);
-#ifdef CONFIG_ARCH_MULTIPLATFORM
-static inline void putc(int c) {}
-static inline void flush(void) {}
-static inline void arch_decomp_setup(void) {}
-#else
-#include <mach/uncompress.h>
-#endif
+#include CONFIG_UNCOMPRESS_INCLUDE
#ifdef CONFIG_DEBUG_ICEDCC