How to build your own Linux real-time kernel
Introduction
In this document, several guides are listed for users who want to build their own real-time kernel. That is, users who want to build a specific kernel version, a specific architecture or use a customized kernel configuration.
External guides
How to setup Linux with PREEMPT_RT properly
Description: Official instructions from the Linux Foundation
https://wiki.linuxfoundation.org/realtime/documentation/howto/applications/preemptrt_setup
Building real-time Linux for ROS 2
Description: Community contributed step-by-step guide explaining how to build, configure and deploy a kernel with a RT_PREEMPT patch
https://docs.ros.org/en/rolling/Tutorials/Building-Realtime-rt_preempt-kernel-for-ROS-2.html