diff options
author | Ahmad Fatoum <ahmad@a3f.at> | 2022-07-13 11:57:30 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2022-07-16 18:59:16 +0200 |
commit | 6c03bdf8f99932efcc4e01bed04698ca6d9f4eab (patch) | |
tree | 4562f868daf70d988e09700dbd0bd9ca394cf20b /pbl | |
parent | 845524484c298bf173d682b48dd456b147ad5a61 (diff) | |
download | barebox-6c03bdf8f99932efcc4e01bed04698ca6d9f4eab.tar.gz barebox-6c03bdf8f99932efcc4e01bed04698ca6d9f4eab.tar.xz |
kbuild: pbl: use same compression algo for both barebox and DTB
lzop hasn't seen any activity since 2017 and has been recently removed
from OpenEmbedded, which is unfortunate as we unconditionally use LZO
for compressing device trees that are referenced via __dtb_z_.
To make barebox easier to integrate, use the same compression algorithm
for both barebox and compressed DTB.
Note that the decompressor code will be in the image twice: Once in PBL
in uncompressed form to decompress barebox proper and once in compressed
form to decompress the DTB.
Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
Link: https://lore.barebox.org/20220713095730.1878941-6-a.fatoum@pengutronix.de
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'pbl')
-rw-r--r-- | pbl/Kconfig | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/pbl/Kconfig b/pbl/Kconfig index 4dfa9553f7..ba809af2d5 100644 --- a/pbl/Kconfig +++ b/pbl/Kconfig @@ -31,7 +31,10 @@ if PBL_IMAGE config USE_COMPRESSED_DTB bool depends on ARM || RISCV - select LZO_DECOMPRESS + select LZ4_DECOMPRESS if IMAGE_COMPRESSION_LZ4 + select LZO_DECOMPRESS if IMAGE_COMPRESSION_LZO + select ZLIB if IMAGE_COMPRESSION_GZIP + select XZ_DECOMPRESS if IMAGE_COMPRESSION_XZKERN config PBL_RELOCATABLE depends on ARM || MIPS || RISCV |