diff options
author | Oliver O'Halloran <oohall@gmail.com> | 2016-09-22 16:54:34 +1000 |
---|---|---|
committer | Michael Ellerman <mpe@ellerman.id.au> | 2016-09-28 14:35:14 +1000 |
commit | c762c69e106f2b41ef39981ba46bda0ae8119db5 (patch) | |
tree | 5cc3b8264952c39f8c57a1f7cb467c1a38f24824 /arch/powerpc/boot/types.h | |
parent | f1e510bbb9f265acb4147a3a650882876a76d48b (diff) | |
download | linux-c762c69e106f2b41ef39981ba46bda0ae8119db5.tar.gz linux-c762c69e106f2b41ef39981ba46bda0ae8119db5.tar.bz2 linux-c762c69e106f2b41ef39981ba46bda0ae8119db5.zip |
powerpc/boot: Add support for XZ compression
This patch adds an option to use XZ compression for the kernel image.
Currently this is only enabled for 64-bit Book3S targets, which is
roughly equivalent to the platforms that use the kernel's zImage
wrapper, and that have been tested.
The bulk of the 32-bit platforms and 64-bit BookE use uboot images,
which relies on uboot implementing XZ. In future we can enable XZ
support for those targets once someone has tested it.
Signed-off-by: Oliver O'Halloran <oohall@gmail.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Diffstat (limited to 'arch/powerpc/boot/types.h')
-rw-r--r-- | arch/powerpc/boot/types.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/arch/powerpc/boot/types.h b/arch/powerpc/boot/types.h index 85565a89bcc2..af6b66b842c4 100644 --- a/arch/powerpc/boot/types.h +++ b/arch/powerpc/boot/types.h @@ -1,6 +1,8 @@ #ifndef _TYPES_H_ #define _TYPES_H_ +#include <stdbool.h> + #define ARRAY_SIZE(x) (sizeof(x) / sizeof((x)[0])) typedef unsigned char u8; @@ -34,4 +36,16 @@ typedef s64 int64_t; (void) (&_x == &_y); \ _x > _y ? _x : _y; }) +#define min_t(type, a, b) min(((type) a), ((type) b)) +#define max_t(type, a, b) max(((type) a), ((type) b)) + +typedef int bool; + +#ifndef true +#define true 1 +#endif + +#ifndef false +#define false 0 +#endif #endif /* _TYPES_H_ */ |