Oliver O'Halloran c762c69e10 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>
2016-09-28 14:35:14 +10:00
..
2016-07-30 21:01:36 -07:00
2013-12-02 14:06:57 +11:00
2010-05-12 07:48:49 -04:00
2007-09-19 21:13:16 -05:00
2008-04-17 01:01:40 -05:00
2014-05-01 08:26:26 +10:00
2016-09-28 14:20:44 +10:00
2009-12-12 22:24:26 -07:00
2014-08-05 15:41:03 +10:00
2015-04-29 17:17:17 -05:00
2015-04-29 17:17:17 -05:00
2014-08-26 09:35:57 +02:00
2007-09-14 01:33:23 +10:00
2007-09-14 01:33:23 +10:00
2009-12-12 22:24:29 -07:00

To extract the kernel vmlinux, System.map, .config or initrd from the zImage binary:

objcopy -j .kernel:vmlinux -O binary zImage vmlinux.gz
objcopy -j .kernel:System.map -O binary zImage System.map.gz
objcopy -j .kernel:.config -O binary zImage config.gz
objcopy -j .kernel:initrd -O binary zImage.initrd initrd.gz


	Peter