Files
fedora/kernel/kernel.sh
T
2023-07-13 19:15:02 +05:30

25 lines
831 B
Bash
Executable File

#!/usr/bin/bash
source /repo/util.sh
FEDORA_KERNEL_VERSION=6.3.12-200.fc38
PATCHES_COMMIT=13dee3659d1ef17c5ea588c8be629fe693045496
cd /repo/kernel
download_koji_sources kernel-${FEDORA_KERNEL_VERSION}
# Fedora devs are against merging kernel-local for all architectures when keys are not properly specified, so we have to patch it in.
sed -i "s@for i in %{all_arch_configs}@for i in *.config@g" kernel.spec
# Set buildid to .t2
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 ${PATCHES_COMMIT}
cd ..
cat patches/extra_config > kernel-local
cat patches/*.patch > linux-kernel-test.patch