Skip to content

Commit

Permalink
u-boot: explicitly enable decompression
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
kszaq authored and MilhouseVH committed Jun 13, 2019
1 parent 1122893 commit 9e39ce6
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions packages/tools/u-boot/package.mk
Expand Up @@ -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"
Expand Down

0 comments on commit 9e39ce6

Please sign in to comment.