introduce DEB_COMPRESS for dpkg-deb+kernel's KDEB_COMPRESS (#3222)

* introduce DEB_COMPRESS for dpkg-deb+kernel's KDEB_COMPRESS

- Avoids zstd which is now default in Ubuntu Impish, but can't be read by Debian dpkg
- Allows for xz, gzip, or none; defaults to xz; use gzip for faster, and none for much faster.

Signed-off-by: Ricardo Pardini <ricardo@pardini.net>

* use KDEB_COMPRESS in packages/armbian/builddep for 5.12+ kernels too

Signed-off-by: Ricardo Pardini <ricardo@pardini.net>
This commit is contained in:
Ricardo Pardini
2021-10-27 18:55:12 +02:00
committed by GitHub
parent a22e929853
commit be5f2b8c75
8 changed files with 16 additions and 13 deletions

View File

@@ -21,6 +21,7 @@ fi
[[ -z $ROOTPWD ]] && ROOTPWD="1234" # Must be changed @first login
[[ -z $MAINTAINER ]] && MAINTAINER="Igor Pecovnik" # deb signature
[[ -z $MAINTAINERMAIL ]] && MAINTAINERMAIL="igor.pecovnik@****l.com" # deb signature
[[ -z $DEB_COMPRESS ]] && DEB_COMPRESS="xz" # compress .debs with XZ by default. Use 'none' for faster/larger builds
TZDATA=$(cat /etc/timezone) # Timezone for target is taken from host or defined here.
USEALLCORES=yes # Use all CPU cores for compiling
HOSTRELEASE=$(cat /etc/os-release | grep VERSION_CODENAME | cut -d"=" -f2)