Merge fetch and prepare steps for debian package

This avoids declaring KERNEL_VERSION multiple times.
This commit is contained in:
Maximilian Luz 2020-01-20 14:42:13 +01:00
parent 5b353b9a3e
commit b4203834ee
No known key found for this signature in database
GPG key ID: 70EC0937F6C26F02

View file

@ -82,7 +82,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: |
@ -91,13 +91,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