From 5dd6a274349dac841b0282f59b4b3b7ab43b9411 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bla=C5=BE=20Hrastnik?= Date: Tue, 14 Jan 2020 19:07:28 +0900 Subject: [PATCH] wip: correct debian builds? --- .github/workflows/release.yml | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 5cd2d8f4b..23b675ea8 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -88,6 +88,7 @@ jobs: cd pkg/debian export KERNEL_VERSION=${PACKAGE_VERSION%-*} + export FLAVOR=amd64_none_amd64 # download sources wget https://cdn.kernel.org/pub/linux/kernel/v${KERNEL_VERSION%%.*}.x/linux-$KERNEL_VERSION.tar.xz @@ -99,15 +100,21 @@ jobs: debian/bin/genorig.py ../linux-$KERNEL_VERSION.tar.xz debian/rules orig + # because debian knows better and intentionally raises an error, we + # have to bypass it. *sigh* + debian/rules debian/control || true + # apply patches for PATCH in ../../../patches/${KERNEL_VERSION%.*}/*.patch; do patch -p1 < ${PATCH}; done - # merge configs - ./scripts/kconfig/merge_config.sh -m debian/config/config ../surface.config + # run the setup to generate the base config + fakeroot make -f debian/rules.gen setup_$FLAVOR - # config & build! - make olddefconfig - make bindeb-pkg + # merge configs + ./scripts/kconfig/merge_config.sh -O debian/build/build_$FLAVOR -m debian/build/build_$FLAVOR/.config ../surface.config + + # build! + fakeroot make -f debian/rules.gen binary-arch_$FLAVOR -j2 - name: Prepare release run: |