PKGBUILD: apply extra uarches patch even when defconfig is copied #3

Merged
Showing only changes of commit 6da003f220 - Show all commits

View file

@ -197,6 +197,11 @@ apply_patches() {
patch -Np1 -i "${srcdir}/cl-linux/${i}" || true
done
# Patch with kernel_compiler_patch patches.
# Do this before any defconfig invocations so we
# have all of the extra selectable uarches ready and selectable
patch -Np1 -i "$srcdir/kernel_compiler_patch-$_kernelcompilerpatch/more-ISA-levels-and-uarches-for-kernel-6.1.79+.patch"
}
# Allows user to modify the kernel config
@ -314,11 +319,6 @@ update_defconfig() {
# Run olddefconfig
make ${BUILD_FLAGS[*]} olddefconfig
diff -u $srcdir/cl-linux/config .config || :
# Patch with kernel_compiler_patch patches

It's not entirely clear if we really need to make olddefconfig here, up to you whether to leave this in or move/remove it. @JeremyStarTM

It's not entirely clear if we really need to make olddefconfig here, up to you whether to leave this in or move/remove it. @JeremyStarTM

olddefconfig is usually executed to set unset kconfig settings. This is useful when updating the kernel and reusing the kconfig from the previous kernel version. I think we should leave that inside

`olddefconfig` is usually executed to set unset kconfig settings. This is useful when updating the kernel and reusing the kconfig from the previous kernel version. I think we should leave that inside

Ok, left the olddefconfig call, but the comment refers to nothing now, so I will remove it.

Ok, left the olddefconfig call, but the comment refers to nothing now, so I will remove it.
# This must be executed after olddefconfig
# to allow for the next section to run.
patch -Np1 -i "$srcdir/kernel_compiler_patch-$_kernelcompilerpatch/more-ISA-levels-and-uarches-for-kernel-6.1.79+.patch"
# Set subarch automatically
if [ -n "${_subarch}" ]; then