fix: check and add debian package compression for kernel legacy (#3807)

This commit is contained in:
The-going
2022-05-23 16:53:38 +03:00
committed by GitHub
parent 247c4c45fd
commit e7d7dab1bb

View File

@@ -107,6 +107,15 @@ compilation_prepare()
process_patch_file "${SRC}/patch/misc/general-packaging-4.9.y.patch" "applying"
fi
# After the patches have been applied,
# check and add debian package compression if required.
#
if [ "$(awk '/dpkg --build/{print $1}' $kerneldir/scripts/package/builddeb)" == "dpkg" ];then
sed -i -e '
s/dpkg --build/dpkg-deb \${KDEB_COMPRESS:+-Z\$KDEB_COMPRESS} --build/
' "$kerneldir"/scripts/package/builddeb
fi
#
# Linux splash file
#