Skip to content

Commit f998ff5

Browse files
meta-qcom: include hardening configs by default
- Included the hardening.config as part of the default build configuration. - Improves baseline security without requiring manual opt-in. - Aligns with best practices for secure and robust builds. Signed-off-by: Abhilasha Manna <[email protected]>
1 parent 81d6358 commit f998ff5

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

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

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,13 +36,14 @@ S = "${UNPACKDIR}/${BP}"
3636
KBUILD_DEFCONFIG ?= "defconfig"
3737
KBUILD_DEFCONFIG:qcom-armv7a = "qcom_defconfig"
3838

39-
CONFIG_LIST = "${@" ".join(find_cfgs(d))}"
40-
CONFIG_LIST += "${@bb.utils.contains('DISTRO_FEATURES', 'hardened', '${S}/kernel/configs/hardening.config', '', d)}"
39+
KBUILD_CONFIG_EXTRA = "${S}/kernel/configs/hardening.config"
40+
4141

4242
do_configure:prepend() {
4343
# Use a copy of the 'defconfig' from the actual repo to merge fragments
4444
cp ${S}/arch/${ARCH}/configs/${KBUILD_DEFCONFIG} ${B}/.config
4545

4646
# Merge fragment for QCOM value add features
47-
${S}/scripts/kconfig/merge_config.sh -m -O ${B} ${B}/.config ${CONFIG_LIST}
47+
${S}/scripts/kconfig/merge_config.sh -m -O ${B} ${B}/.config ${@" ".join(find_cfgs(d))} ${KBUILD_CONFIG_EXTRA}
48+
4849
}

0 commit comments

Comments
 (0)