Skip to content

Commit

Permalink
NB1: Disable LZ4 compression for ramdisk
Browse files Browse the repository at this point in the history
NB1 does not support LZ4 compression for ramdisk in some ROMs
and it cause broken recovery mode. Enabling LZ4 compression
gonna break offline charging also.

Set it to false to prevent recovery crash/freeze.
  • Loading branch information
Lisa Liu authored and Niemandausduisburg committed Dec 25, 2022
1 parent c2bde43 commit 8b3f981
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions BoardConfig.mk
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,9 @@ TARGET_KERNEL_ARCH := arm64
TARGET_KERNEL_ADDITIONAL_FLAGS := LLVM=1
TARGET_KERNEL_ADDITIONAL_FLAGS := LD=ld.lld AR=llvm-ar NM=llvm-nm OBJCOPY=llvm-objcopy OBJDUMP=llvm-objdump STRIP=llvm-strip

# LZ4 ramdisk
BOARD_RAMDISK_USE_LZ4 := false

# Kernel additional flags
TARGET_KERNEL_ADDITIONAL_FLAGS := \
HOSTCFLAGS="-fuse-ld=lld -Wno-unused-command-line-argument"
Expand Down

0 comments on commit 8b3f981

Please sign in to comment.