Use submodules

This commit is contained in:
sharpenedblade
2023-10-01 16:04:51 -07:00
parent 6411ebdbf5
commit 5b3bddda88
4 changed files with 9 additions and 7 deletions
+2
View File
@@ -40,6 +40,8 @@ jobs:
- name: "Checkout"
uses: actions/checkout@v3
with:
submodules: recursive
- name: "Build"
run: |
+3
View File
@@ -0,0 +1,3 @@
[submodule "kernel/linux-t2-patches"]
path = kernel/linux-t2-patches
url = https://github.com/t2linux/linux-t2-patches
+3 -7
View File
@@ -1,7 +1,5 @@
#!/usr/bin/bash
FEDORA_KERNEL_VERSION=6.5.5-200.fc38
PATCHES_COMMIT=3aeff9385079f5f362a5447cdb9f4e2b48962c92
cd /repo/kernel
koji download-build --quiet --arch=src "kernel-${FEDORA_KERNEL_VERSION}"
rpmdev-extract -q "kernel-${FEDORA_KERNEL_VERSION}".src.rpm
@@ -16,9 +14,7 @@ sed -i 's/# define buildid .local/%define buildid .t2/g' kernel.spec
# Disable debug kernels
sed -i "/%define with_debug /c %define with_debug 0" kernel.spec
git clone --quiet --single-branch --branch main https://github.com/t2linux/linux-t2-patches patches && cd patches
git checkout --quiet ${PATCHES_COMMIT}
cd ..
cat linux-t2-patches/extra_config > kernel-local
cat linux-t2-patches/*.patch > linux-kernel-test.patch
cat patches/extra_config > kernel-local
cat patches/*.patch > linux-kernel-test.patch
cd ..