meta-qcom layer provides a dedicated Bitbake recipe that
fetches the LTS RT kernel sources, applies the PREEMPT_RT patch set, and
enables the required Kconfig options automatically.
Choose the correct RT recipe
Two RT recipes are available depending on the target branch:| Recipe | Kernel track | Use when |
|---|---|---|
linux-qcom-rt_6.18.bb | LTS 6.18.x | Building for a QLI release (stable, production-ready) |
linux-qcom-next-rt_git.bb | qcom-next | Building from the latest development tree |
meta-qcom/recipes-kernel/linux/. The LTS recipe is used
for all examples on this page.
Build the RT kernel image
1. Sync the workspace
Clonemeta-qcom at a release tag and sync all Qualcomm Linux meta layers before building.
For workspace setup instructions, see
Build the kernel with Yocto.
2. Open the kas shell for the RT kernel
qcs6490-rb3gen2-core-kit.yml with the kas machine file for your
target board.
3. Build the image
4. Flash to the device
Customise the RT kernel
Add a patch
-
Place the patch file in
recipes-kernel/linux/linux-qcom-6.18/: -
Append it to
SRC_URIinlinux-qcom-rt_6.18.bb:
Add a Kconfig configuration fragment
-
Create a
.cfgfile with the requiredCONFIG_*symbols:Example contents: -
Append it to
SRC_URIinlinux-qcom-rt_6.18.bb:
Modify the kernel command line
Add or override command-line parameters inmeta-qcom/ci/base.yml using the
KERNEL_CMDLINE_EXTRA variable:
meta-qcom/conf/machine/<machine-name>.conf:

