PKGBUILD: apply extra uarches patch even when defconfig is copied
Otherwise some default value is set which will result in a misoptimization.
This commit is contained in:
parent
d9caba7166
commit
273f8eef39
1 changed files with 6 additions and 2 deletions
8
PKGBUILD
8
PKGBUILD
|
@ -197,6 +197,11 @@ apply_patches() {
|
||||||
|
|
||||||
patch -Np1 -i "${srcdir}/cl-linux/${i}" || true
|
patch -Np1 -i "${srcdir}/cl-linux/${i}" || true
|
||||||
done
|
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
|
# Allows user to modify the kernel config
|
||||||
|
@ -315,10 +320,9 @@ update_defconfig() {
|
||||||
make ${BUILD_FLAGS[*]} olddefconfig
|
make ${BUILD_FLAGS[*]} olddefconfig
|
||||||
diff -u $srcdir/cl-linux/config .config || :
|
diff -u $srcdir/cl-linux/config .config || :
|
||||||
|
|
||||||
# Patch with kernel_compiler_patch patches
|
|
||||||
# This must be executed after olddefconfig
|
# This must be executed after olddefconfig
|
||||||
# to allow for the next section to run.
|
# 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"
|
# ^^^ do we really need this?
|
||||||
|
|
||||||
# Set subarch automatically
|
# Set subarch automatically
|
||||||
if [ -n "${_subarch}" ]; then
|
if [ -n "${_subarch}" ]; then
|
||||||
|
|
Loading…
Reference in a new issue