Skip to content

Commit 0d9104a

Browse files
linux-qcom-next: conditionally include qcom_debug.config for aarch64 debug builds (#1927)
Include `qcom_debug.config` in KBUILD_CONFIG_EXTRA for aarch64 only when `DEBUG_BUILD` is enabled. This enables QCOM-specific debug options such as DCC and memory dump support for debug builds, while leaving normal builds unaffected.
2 parents 2a76247 + 60ae58b commit 0d9104a

2 files changed

Lines changed: 2 additions & 0 deletions

File tree

recipes-kernel/linux/linux-qcom-next_git.bb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ KBUILD_CONFIG_EXTRA = "${@bb.utils.contains('DISTRO_FEATURES', 'hardened', '${S}
4040
KBUILD_CONFIG_EXTRA:append:aarch64 = " ${S}/arch/arm64/configs/prune.config"
4141
KBUILD_CONFIG_EXTRA:append:aarch64 = " ${S}/arch/arm64/configs/qcom.config"
4242
KBUILD_CONFIG_EXTRA:append = " ${@oe.utils.vartrue('DEBUG_BUILD', '${S}/kernel/configs/debug.config', '', d)}"
43+
KBUILD_CONFIG_EXTRA:append:aarch64 = " ${@oe.utils.vartrue('DEBUG_BUILD', '${S}/arch/arm64/configs/qcom_debug.config', '', d)}"
4344

4445
do_configure:prepend() {
4546
# Use a copy of the 'defconfig' from the actual repo to merge fragments

recipes-kernel/linux/linux-qcom_6.18.bb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ KBUILD_CONFIG_EXTRA = "${@bb.utils.contains('DISTRO_FEATURES', 'hardened', '${S}
4343
KBUILD_CONFIG_EXTRA:append:aarch64 = " ${S}/arch/arm64/configs/prune.config"
4444
KBUILD_CONFIG_EXTRA:append:aarch64 = " ${S}/arch/arm64/configs/qcom.config"
4545
KBUILD_CONFIG_EXTRA:append = " ${@oe.utils.vartrue('DEBUG_BUILD', '${S}/kernel/configs/debug.config', '', d)}"
46+
KBUILD_CONFIG_EXTRA:append:aarch64 = " ${@oe.utils.vartrue('DEBUG_BUILD', '${S}/arch/arm64/configs/qcom_debug.config', '', d)}"
4647

4748
do_configure:prepend() {
4849
# Use a copy of the 'defconfig' from the actual repo to merge fragments

0 commit comments

Comments
 (0)