Initial support for Linux 6.0 RC1
This commit is contained in:
14
linux-tkg-config/6.0/90-cleanup.hook
Normal file
14
linux-tkg-config/6.0/90-cleanup.hook
Normal file
@@ -0,0 +1,14 @@
|
||||
[Trigger]
|
||||
Type = File
|
||||
Operation = Install
|
||||
Operation = Upgrade
|
||||
Operation = Remove
|
||||
Target = usr/lib/modules/*/
|
||||
Target = !usr/lib/modules/*/?*
|
||||
|
||||
[Action]
|
||||
Description = Cleaning up...
|
||||
When = PostTransaction
|
||||
Exec = /usr/share/libalpm/scripts/cleanup
|
||||
NeedsTargets
|
||||
|
10
linux-tkg-config/6.0/cleanup
Executable file
10
linux-tkg-config/6.0/cleanup
Executable file
@@ -0,0 +1,10 @@
|
||||
#!/bin/bash
|
||||
|
||||
for _f in /usr/lib/modules/*tkg*; do
|
||||
if [[ ! -e ${_f}/vmlinuz ]]; then
|
||||
rm -rf "$_f"
|
||||
fi
|
||||
done
|
||||
|
||||
# vim:set ft=sh sw=2 et:
|
||||
|
11198
linux-tkg-config/6.0/config.x86_64
Normal file
11198
linux-tkg-config/6.0/config.x86_64
Normal file
File diff suppressed because it is too large
Load Diff
@@ -1,7 +1,7 @@
|
||||
#!/bin/bash
|
||||
|
||||
# List of kernels that are maintained upstream
|
||||
_current_kernels=("5.19" "5.18" "5.15" "5.10" "5.4")
|
||||
_current_kernels=("6.0" "5.19" "5.18" "5.15" "5.10" "5.4")
|
||||
|
||||
# List of kernels that are no longer maintained upstream
|
||||
_eol_kernels=("5.17" "5.16" "5.14" "5.13" "5.12" "5.11" "5.9" "5.8" "5.7")
|
||||
@@ -22,6 +22,7 @@ _kver_subver_map=(
|
||||
["5.17"]="15"
|
||||
["5.18"]="17"
|
||||
["5.19"]="1"
|
||||
["6.0"]="rc1"
|
||||
)
|
||||
|
||||
# PREEMPT_RT's supported kernel subversion
|
||||
@@ -459,9 +460,17 @@ _tkg_srcprep() {
|
||||
_patch_name="more-uarches-for-kernel-5.17%2B"
|
||||
fi
|
||||
|
||||
wget -O "${_patch_location}/${_patch_name}.patch" "https://raw.githubusercontent.com/graysky2/kernel_compiler_patch/master/${_outdated}${_patch_name}.patch"
|
||||
tkgpatch="${_patch_location}/${_patch_name}.patch"
|
||||
_msg="Applying graysky's cpu opts patch" && _tkg_patcher
|
||||
if [ "$_basever" != "60" ]; then
|
||||
wget -O "${_patch_location}/${_patch_name}.patch" "https://raw.githubusercontent.com/graysky2/kernel_compiler_patch/master/${_outdated}${_patch_name}.patch" || true
|
||||
tkgpatch="${_patch_location}/${_patch_name}.patch"
|
||||
if [ -e "$tkgpatch" ]; then
|
||||
_msg="Applying graysky's cpu opts patch" && _tkg_patcher
|
||||
else
|
||||
msg2 "Couldn't find graysky's cpu opts patch for this version"
|
||||
fi
|
||||
else
|
||||
_processor_opt="generic"
|
||||
fi
|
||||
|
||||
# PREEMPT_RT patch
|
||||
if [ "${_preempt_rt}" = "1" ]; then
|
||||
|
Reference in New Issue
Block a user