summaryrefslogtreecommitdiffstats
path: root/features/reduced_kernel_footprint_guest
Commit message (Collapse)AuthorAgeFilesLines
* Fix kaudit warnings after hardknott refreshAlexandru Avadanii2022-07-071-2/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 1. 'CONFIG_XOR_BLOCKS' last val (m) and .config val (y) do not match * Previously we tried to configure this as 'm' to reduce the kernel footprint, but it is selected indirectly as 'y' via: CONFIG_MD_RAID456 (y, set by Intel x86 BSP) CONFIG_ASYNC_XOR CONFIG_XOR_BLOCKS 2. 'CONFIG_CRC_ITU_T' last val (m) and .config val (y) do not match * Upstream 'nfc-generic.cfg' sets this to 'm', but our 'mmc_sd_y.cfg' selects it as 'y' via: CONFIG_MMC_SPI (y) CONFIG_CRC_ITU_T 3. 'CONFIG_ISDN_CAPI' last val (y) and .config val (n) do not match * Upstream enables ISDN, but our kernel footprint reduction disables one of its dependencies (CONFIG_BT=n), make it explicit. 4. 'CONFIG_MEDIA_PLATFORM_SUPPORT' last val (y) and .config val (n) do not match * Upstream enables it, but our kernel footprint reduction disables one of its dependencies (CONFIG_MEDIA_SUPPORT=n), make it explicit. 5. 'CONFIG_*' (many similar options, all depending on CONFIG_IIO) last val (m) and .config val (n) do not match * Upstream enables them, but our kernel footprint reduction disables one of their dependencies (CONFIG_IIO=n) via 'accelerometers_n.cfg'; * create a new configuration fragment ('iio_n.scc') for this and gather all IIO dependencies that we want disabled to make them explicit (moving CONFIG_IIO=n from 'accelerometers_n.cfg' to 'iio_n.cfg'); * 'iio_n.cfg' contains all configuration from yocto-kernel-cache 'iio.cfg' (changing 'm' and/or 'y' to 'n'), including the options that were previously handled by existing features in: - features/accelerometers/accelerometers_n.cfg; - features/inclinometer/inclinometer_n.cfg; - features/hidsensor/hidsensor_n.cfg; * 'iio_n.scc' replaces the 3 old fragments, especially since they were always included together; 6. 'CONFIG_INPUT_SOC_BUTTON_ARRAY' last val (m) and .config val (n) do not match * Upstream enables it, but our kernel footprint reduction disables one of its dependencies (CONFIG_KEYBOARD_GPIO=n), make it explicit. 7. 'CONFIG_INTEL_SOC_PMIC' last val (y) and .config val (n) do not match * Upstream enables it, but our 'i2c_m.cfg' (when added to KERNEL_FEATURES) breaks two of its dependencies (CONFIG_I2C=y, I2C_DESIGNWARE_PLATFORM=y), make it explicit. 8. 'CONFIG_TYPEC_TCPM' last val (m) and .config val (n) do not match 'CONFIG_TYPEC_TCPCI' last val (m) and .config val (n) do not match * Upstream enables them, but our kernel footprint reduction disables one of their dependencies (CONFIG_TYPEC=n), make it explicit. 9. 'CONFIG_SERIO_I8042' last val (m) and .config val (n) do not match * We enable the SERIO_I8042 (wrongfully?) via 'keyboard_n.scc', but its dependency (CONFIG_SERIO) is already disabled by both 'input_n.scc' and 'serio_n.scc'. * re-order scc fragments to silence the warning without changing any actual configuration fragment; 10. 'CONFIG_PRINTER' last val (m) and .config val (n) do not match * Upstream enables it, but our kernel footprint reduction disables one of its dependencies (CONFIG_PARPORT=n), make it explicit. 11. 'CONFIG_USB_NET_RNDIS_HOST' last val (m) and .config val (n) do not match * Upstream enables it, but our kernel footprint reduction disables one of its dependencies (CONFIG_USBNET=n), make it explicit. 12. 'CONFIG_USB_GADGET_VBUS_DRAW' last val (2) and .config val (n) do not match (same with 'CONFIG_USB_GADGET_STORAGE_NUM_BUFFERS') * Both depend on 'USB_GADGET'. Change-Id: Id17c54348adbedcd110f0e4a456763797834c6a8 Signed-off-by: Alexandru Avadanii <Alexandru.Avadanii@enea.com>
* Fix kaudit warnings for guest kernelAlexandru Avadanii2021-06-221-1/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | 1. CONFIG_UNWINDER_FRAME_POINTER New in kernel v4.15+. Since we want to disable FRAME_POINTER, this one should be disabled too (or it will select FRAME_POINTER). Adding it will lead to honoring our FRAME_POINTER setting. Note that having a kernel unwinder is mandatory, so only disabling UNWINDER_FRAME_POINTER will automatically select UNWINDER_ORC on x86_64. Set CONFIG_UNWINDER_GUESS=y instead to avoid runtime overhead with the cost of having less precise debug information on kernel crashes. 2. CONFIG_REGMAP Selected by I2C_DESIGNWARE_CORE, which we enabled as a load-module. Adding it to i2c_m.cfg only silences the kaudit warning, as it is already selected. 3. CONFIG_BLK_DEV_SR reduced_kernel_footprint_guest: Remove config cdrom_n.scc, which is used as dependency by other features (cloud-init NoCloud on CDROM). Change-Id: I03f5f19c6ea535dfe90cae2068ffbdc99b07f8f4 Signed-off-by: Alexandru Avadanii <Alexandru.Avadanii@enea.com>
* reduced_kernel_footprint_guest: update to 5.10Adrian Calianu2021-05-251-6/+0
| | | | | | | | - remove configs which are used as dependencies by other configs/features. For example i2c is required by igb driver. Change-Id: Iaa50fb019877b0155f98d721bafdd9ecc028538e Signed-off-by: Adrian Calianu <adrian.calianu@enea.com>
* fix path of new guest featuresAdrian Calianu2017-09-271-0/+75
Signed-off-by: Adrian Calianu <adrian.calianu@enea.com>