Add zstd package for 6.18 kernel build

The 6.18 kernel's Debian config enables zstd kernel compression, which
requires the zstd command-line tool to be available during build. Add
zstd to predepscmd for both production and debug kernel builds.
This commit is contained in:
Ameer Hamza
2025-10-28 20:44:52 +05:00
parent be47478c1b
commit 862a478789

View File

@@ -376,7 +376,7 @@ sources:
EXTRAVERSION: "-production"
PYTHON: "python3"
predepscmd:
- "apt install -y flex bison dwarves libssl-dev devscripts"
- "apt install -y flex bison dwarves libssl-dev devscripts zstd"
# Install dependencies to build perf
- "apt install -y libelf-dev libdw-dev systemtap-sdt-dev libunwind-dev libslang2-dev libperl-dev binutils-dev libiberty-dev python3 python3-setuptools python3-dev liblzma-dev libzstd-dev libcap-dev libnuma-dev libbabeltrace-dev openjdk-21-jdk libcapstone-dev llvm-dev"
# We remove git files because kernel makefile tries to interact with git for determining version
@@ -399,7 +399,7 @@ sources:
env:
EXTRAVERSION: "-debug"
predepscmd:
- "apt install -y flex bison dwarves libssl-dev devscripts"
- "apt install -y flex bison dwarves libssl-dev devscripts zstd"
# We remove git files because kernel makefile tries to interact with git for determining version
# which results in misconfigured version due to our debian based changes
- "rm -rf .git .gitattributes .gitignore"