diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 00d66a19d..6e38b7cb8 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -81,7 +81,7 @@ jobs: apt-get -y install build-essential fakeroot rsync git wget python3-debian dpkg-sig lz4 apt-get -y build-dep linux - - name: Fetch kernel source + - name: Prepare kernel source env: KERNEL_VERSION: 5.4.13 run: | @@ -90,13 +90,8 @@ jobs: # download sources wget https://cdn.kernel.org/pub/linux/kernel/v${KERNEL_VERSION%%.*}.x/linux-$KERNEL_VERSION.tar.xz tar xf linux-$KERNEL_VERSION.tar.xz - mv linux-$KERNEL_VERSION linux - - name: Apply patches - env: - KERNEL_VERSION: 5.4.13 - run: | - cd pkg/debian/linux + mv linux-$KERNEL_VERSION linux && cd linux # apply build patches for PATCH in ../*.patch; do patch -p1 < ${PATCH}; done diff --git a/pkg/debian/0001-Version-changes-for-linux-surface-debian-package.patch b/pkg/debian/0001-Version-changes-for-linux-surface-debian-package.patch index 6e6b70b94..5bd67286f 100644 --- a/pkg/debian/0001-Version-changes-for-linux-surface-debian-package.patch +++ b/pkg/debian/0001-Version-changes-for-linux-surface-debian-package.patch @@ -3,6 +3,14 @@ From: Maximilian Luz Date: Sun, 19 Jan 2020 22:50:24 +0100 Subject: [PATCH] Version changes for linux-surface debian package +Rename debian kernel packages so that they do not contain the full version +in the name any more as this allows automated updates via a package +repository. Instead the package name now only contains the $LOCALVERSION +string. + +Also rename libc-dev to allow multiple versions to co-exist in the same +repository. + Signed-off-by: Maximilian Luz --- scripts/package/builddeb | 7 ++++--- diff --git a/pkg/fedora/kernel-surface/fedora.config b/pkg/fedora/kernel-surface/fedora.config new file mode 100644 index 000000000..d309117d8 --- /dev/null +++ b/pkg/fedora/kernel-surface/fedora.config @@ -0,0 +1,5 @@ +# +# Forcefully disable debug symbols +# + +# CONFIG_DEBUG_INFO is not set diff --git a/pkg/fedora/kernel-surface/kernel-surface.spec b/pkg/fedora/kernel-surface/kernel-surface.spec index 88af19e9c..985d042d3 100755 --- a/pkg/fedora/kernel-surface/kernel-surface.spec +++ b/pkg/fedora/kernel-surface/kernel-surface.spec @@ -72,9 +72,10 @@ BuildConflicts: rhbuildsys(DiskFree) < 500Mb Source0: %{fedora_source}/snapshot/fedora-%{kernel_tag}.tar.gz Source1: %{config_source}/%{kernel_patches}/surface.config +Source2: fedora.config -Source2: %{sb_crt} -Source3: %{sb_key} +Source20: %{sb_crt} +Source21: %{sb_key} Source100: mod-sign.sh Source101: parallel_xz.sh @@ -114,15 +115,16 @@ against the kernel-surface package. scripts/kconfig/merge_config.sh \ fedora/configs/%{kernel_config} \ - %{SOURCE1} + %{SOURCE1} \ + %{SOURCE2} echo $((%{kernel_release} - 1)) > .version # Copy secureboot certificates if they are available -if [ -f "%{SOURCE2}" ] && [ -f "%{SOURCE3}" ]; then +if [ -f "%{SOURCE20}" ] && [ -f "%{SOURCE21}" ]; then mkdir -p keys - cp %{SOURCE2} keys/MOK.crt - cp %{SOURCE3} keys/MOK.key + cp %{SOURCE20} keys/MOK.crt + cp %{SOURCE21} keys/MOK.key fi # This Prevents scripts/setlocalversion from mucking with our version numbers.