Add support for RT patches (#380)

* Add support for RT patches

* Disallow other CPU schedulers on PREEMPT_RT
This commit is contained in:
X9VoiD
2021-12-12 22:18:48 +08:00
committed by GitHub
parent 6be7a4920b
commit 07503204b4
3 changed files with 66 additions and 2 deletions

View File

@@ -314,7 +314,11 @@ if [ "$1" = "install" ]; then
fi
if [ -z $_kernel_localversion ]; then
_kernel_flavor="tkg-${_cpusched}${_compiler_name}"
if [ "$_preempt_rt" = "1" ]; then
_kernel_flavor="tkg-${_cpusched}-rt${_compiler_name}"
else
_kernel_flavor="tkg-${_cpusched}${_compiler_name}"
fi
else
_kernel_flavor="tkg-${_kernel_localversion}"
fi