From 5e43354ca1196bd9940f127b6e0042d2a28113a7 Mon Sep 17 00:00:00 2001 From: kszaq Date: Sun, 5 May 2019 22:26:41 +0200 Subject: [PATCH] u-boot: explicitly enable decompression u-boot defconfigs don't enable decompression routines required if we want to use compressed kernel image. Enable them to be able to compress kernel and run it. --- packages/tools/u-boot/package.mk | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/packages/tools/u-boot/package.mk b/packages/tools/u-boot/package.mk index 6af7f48b80e..ebc74e6327c 100644 --- a/packages/tools/u-boot/package.mk +++ b/packages/tools/u-boot/package.mk @@ -33,6 +33,13 @@ case "$PROJECT" in ;; esac +post_patch() { + if [ -n "$UBOOT_SYSTEM" ]; then + # Enable LZ4, LZO and LZMA decompression support + echo -e "CONFIG_LZ4=y\nCONFIG_LZO=y\nCONFIG_LZMA=y" >> "$PKG_BUILD/configs/$($ROOT/$SCRIPTS/uboot_helper $PROJECT $DEVICE $UBOOT_SYSTEM config)" + fi +} + make_target() { if [ -z "$UBOOT_SYSTEM" ]; then echo "UBOOT_SYSTEM must be set to build an image"