File tree 2 files changed +18
-0
lines changed
2 files changed +18
-0
lines changed Original file line number Diff line number Diff line change @@ -31,8 +31,13 @@ function install_kernel_interactive() {
31
31
apply_patch_to_kernel " ${PREEMPTRT_FILE} " " ${KERNEL_FILE} "
32
32
generate_new_kernel_configuration
33
33
success_msg " Patch applied successfully!"
34
+
35
+ info_msg " Setting recommended PREEMPT_RT settings..."
36
+ set_recommended_preemptrt_settings
34
37
info_msg " Forcing unsigned kernel..."
35
38
unsign_kernel_configuration
39
+ info_msg " Override any settings if desired, else simply exit the menu..."
40
+ make menuconfig
36
41
37
42
local INSTALLATION_MODE=$( select_installation_mode)
38
43
if [ " ${INSTALLATION_MODE} " == " Debian" ]
@@ -69,6 +74,7 @@ function install_kernel_noninteractive() {
69
74
local PREEMPTRT_FILE=$( download_and_extract_preemptrt " ${PREEMPTRT_FULL_VERSION} " )
70
75
apply_patch_to_kernel " ${PREEMPTRT_FILE} " " ${KERNEL_FILE} "
71
76
generate_new_kernel_configuration
77
+ set_recommended_preemptrt_settings
72
78
unsign_kernel_configuration
73
79
generate_preemptrt_kernel_debian_package
74
80
install_preemptrt_kernel_debian_package " ${PREEMPTRT_FULL_VERSION} "
Original file line number Diff line number Diff line change @@ -194,6 +194,18 @@ function unsign_kernel_configuration() {
194
194
find_and_replace_in_config " ${KERNEL_CONFIG_FILE} " " CONFIG_SYSTEM_REVOCATION_KEYS" ' ""'
195
195
}
196
196
197
+ function set_recommended_preemptrt_settings() {
198
+ declare desc=" Set recommended PREEMPT_RT kernel configuration"
199
+ local KERNEL_CONFIG_FILE=" .config"
200
+ comment_out_in_config " ${KERNEL_CONFIG_FILE} " " CONFIG_HZ_250"
201
+ find_and_replace_in_config " ${KERNEL_CONFIG_FILE} " " CONFIG_HZ_1000" " y"
202
+ find_and_replace_in_config " ${KERNEL_CONFIG_FILE} " " CONFIG_HZ" " 1000"
203
+ find_and_replace_in_config " ${KERNEL_CONFIG_FILE} " " CONFIG_NO_HZ_IDLE" " y"
204
+ find_and_replace_in_config " ${KERNEL_CONFIG_FILE} " " CONFIG_NO_HZ" " y"
205
+ find_and_replace_in_config " ${KERNEL_CONFIG_FILE} " " CONFIG_HIGH_RES_TIMERS" " y"
206
+ find_and_replace_in_config " ${KERNEL_CONFIG_FILE} " " CONFIG_CPU_ISOLATION" " y"
207
+ }
208
+
197
209
function select_installation_mode() {
198
210
declare desc=" Select installation modality"
199
211
echo $( dialog --keep-tite --stdout --default-item " Debian package" --menu " Select the desired installation mode:" 0 0 5 " Debian" " Debian package" " Classic" " Install directly" )
You can’t perform that action at this time.
0 commit comments