summaryrefslogtreecommitdiffstats
path: root/scripts/xz_wrap.sh
Commit message (Collapse)AuthorAgeFilesLines
* scripts: xz_wrap.sh: clear BCJ only when setSascha Hauer2023-11-061-1/+3
| | | | | | | | | | | | | xz_wrap.sh parses the the xz help output to test if the selected BCJ filter is actually supported. $BCJ might be empty though for some architectures like Mips, so test the variable for being non-empty before grepping for the BCJ filter to avoid warnings from grep: Usage: grep [OPTION]... PATTERNS [FILE]... Try 'grep --help' for more information. Fixes: 02898c798d ("scripts: Select XZ --arm64 BCJ filter for 64-bit arm") Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* decompress: xz: enable armthumb BCJ filter for Thumb-2 bareboxAhmad Fatoum2023-10-231-0/+4
| | | | | | | | | | | | | | The XZ decompressor in barebox has BCJ filter support for THUMB, but like Linux, it's unused and instead the ARM BCJ filter is used. Fixing that lets us save a few kilobytes, which is especially useful for legacy configuration that fit a whole barebox into limited on-chip SRAM (and not only the prebootloader). For example, with this patch applied barebox-am33xx-beaglebone-mlo.img is shrinked 3K from 109236 to 106028 bytes. Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de> Link: https://lore.barebox.org/20231020180912.2914428-1-a.fatoum@pengutronix.de Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* scripts: Select XZ --arm64 BCJ filter for 64-bit armJules Maselbas2023-09-081-1/+4
| | | | | | | | | | | | | | This change will select the arm64 BCJ filter for aarch64 instead of the arm filter which was always selected for arm based architectures. The selected filter is also tested, by looking if it is present in the long help message of xz, this is because the arm64 BCJ filter is a recent addition to xz. Signed-off-by: Jules Maselbas <jmaselbas@zdiv.net> Reviewed-by: Ahmad Fatoum <a.fatoum@pengutronix.de> Link: https://lore.barebox.org/20230907152047.102747-2-jmaselbas@zdiv.net Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Add xz decompression supportSascha Hauer2014-11-041-0/+23
This adds xz decompression support from the kernel. Both compressing the barebox binary with xz and decompressing xz files on the commandline is supported. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>