From 07f580527e113dc42bbe39125ab21b88214af8bd Mon Sep 17 00:00:00 2001 From: Guanquan Tian Date: Thu, 27 Aug 2026 01:08:52 +0800 Subject: [PATCH] ci(build-kernel): resolve build-dep against local debian/control apt-get build-dep -y linux ran before checkout and resolved against the archive's generic "linux" source package instead of the fork's own debian/control, so qcom-specific Build-Depends were never installed. Move the build-dep call after "debian/rules clean" generates the real debian/control, and resolve against that local file (apt-get build-dep -y ./) instead of the archive package name. Signed-off-by: Guanquan Tian --- .github/workflows/build-kernel.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build-kernel.yml b/.github/workflows/build-kernel.yml index 07fddad7bd2f0..f65bd90fff2d1 100644 --- a/.github/workflows/build-kernel.yml +++ b/.github/workflows/build-kernel.yml @@ -344,7 +344,6 @@ jobs: # pkg-builder:noble is Ubuntu 24.04 which uses DEB822 format. sed -i "s/^Types: deb$/Types: deb deb-src/" /etc/apt/sources.list.d/ubuntu.sources apt-get update -qq - apt-get build-dep -y linux cd kernel-src/ echo "debian/debian.env: $(cat debian/debian.env 2>/dev/null || echo NOT FOUND)" @@ -381,6 +380,10 @@ jobs: echo "Safety net: created debian/changelog → debian.master/changelog" fi + # Resolve against the local debian/control just generated by "clean". + echo "=== Installing build dependencies from debian/control ===" + apt-get build-dep -y ./ + echo "=== Starting: fakeroot debian/rules ${TARGET} (jobs=${JOBS}) ===" export DEB_BUILD_OPTIONS="parallel=${JOBS} nocheck" # do_skip_checks=true skips the config policy check that requires