makedumpfile: add PACKAGECONFIG options for lzo and snappy compression

makedumpfile can be compiled with lzo and/or snappy dump file compression
support. Lzo and snappy offer faster compression time but slightly bigger
compressed files. When reload time is important it might be beneficial to use
lzo or snappy compression.

But it brings additional dependencies and can make crash image bigger.

Add makedumpfile PACKAGECONFIG that would allow to add lzo and/or snappy if so
desired.

Signed-off-by: Alexander Kamensky <alexander.kamensky42@gmail.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
This commit is contained in:
Alexander Kamensky 2020-11-12 11:58:36 -08:00 committed by Khem Raj
parent 7a6a1ac1d3
commit b1cae56126

View File

@ -40,8 +40,13 @@ SECTION = "base"
EXTRA_OEMAKE = "\
LINKTYPE=static \
TARGET=${TARGET_ARCH} \
${PACKAGECONFIG_CONFARGS} \
"
PACKAGECONFIG ??= ""
PACKAGECONFIG[lzo] = "USELZO=on,USELZO=off,lzo"
PACKAGECONFIG[snappy] = "USESNAPPY=on,USESNAPPY=off,snappy"
do_install () {
mkdir -p ${D}/usr/bin
install -m 755 ${S}/makedumpfile ${D}/usr/bin