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 committed May 7, 2019
1 parent 00ce5d5 commit 5e43354
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions packages/tools/u-boot/package.mk
Original file line number Diff line number Diff line change
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 5e43354

Please sign in to comment.