Skip to content

Commit

Permalink
Revert "Build debug kernels"
Browse files Browse the repository at this point in the history
This reverts commit d5d0610.
  • Loading branch information
sharpenedblade committed Jun 18, 2024
1 parent 212f2fb commit 6b23ce5
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions kernel/kernel.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,14 @@ rpmdev-extract -q "kernel-$KERNEL_VERSION.src.rpm"
mv -n "kernel-$KERNEL_VERSION.src"/* .
rm -r "kernel-$KERNEL_VERSION.src.rpm" "kernel-$KERNEL_VERSION.src"

# 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"

# Enable debug kernels
sed -i "/%define with_debug /c %define with_debug 1" "kernel.spec"
# Disable debug kernels
sed -i "/%define with_debug /c %define with_debug 0" "kernel.spec"

# Add our patches
sed -i "/Patch1:/a Patch2: t2linux-combined.patch" "kernel.spec"
Expand Down

0 comments on commit 6b23ce5

Please sign in to comment.