Commit 35bba96
authored
linux-qcom-next: Added security hardening.config to kernel config (#1214)
This PR introduces support for conditionally including
`hardening.config` during kernel configuration for linux-qcom-next.
The inclusion is based on DISTRO_FEATURES containing **sec-hardening**.
Uses merge_config.sh to combine the base .config, hardening.config, and
any additional fragments.
Default it's not enabled for all build and only for production builds
with "sec-hardening" is enabled.
Changes:
Added logic in `do_configure:prepend` to merge `hardening.config` when
`sec-hardening` is present in DISTRO_FEATURES.
No changes for distros without this feature.
Verified build on QCS9100 with DISTRO_FEATURES += "sec-hardening".
Kernel config includes hardening options as expected.1 file changed
+4
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
39 | 42 | | |
40 | 43 | | |
41 | 44 | | |
42 | 45 | | |
43 | 46 | | |
44 | | - | |
| 47 | + | |
45 | 48 | | |
0 commit comments