Merge fetch and prepare steps for debian package
This avoids declaring KERNEL_VERSION multiple times.
This commit is contained in:
parent
5b353b9a3e
commit
b4203834ee
9
.github/workflows/release.yml
vendored
9
.github/workflows/release.yml
vendored
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue