From: Ricardo Robaina <rroba...@redhat.com> redhat/configs: enable kernel .config support
Issue: https://issues.redhat.com/browse/RHEL-82530 Upstream Status: RHEL-Only Several kernel-tests check the configuration options used to build the currently running kernel to be able to run tests accordingly [1]. However, depending on the deployment method some .config sources might not be available. For instance, in image mode, the /boot directory does not exist. This patch enables CONFIG_IKCONFIG and CONFIG_IKCONFIG_PROC to expose kernel .config data via /proc/config.gz, enabling an extra source of .config, thus ensuring redundancy of this information to make kernel tests more robust and allowing it to support current and future kernel variants and environments. [1] kernel-tests]$ grep -rni "/boot/config-*" |wc -l 140 Signed-off-by: Ricardo Robaina <rroba...@redhat.com> diff --git a/redhat/configs/rhel/generic/CONFIG_IKCONFIG b/redhat/configs/rhel/generic/CONFIG_IKCONFIG new file mode 100644 index blahblah..blahblah 100644 --- /dev/null +++ b/redhat/configs/rhel/generic/CONFIG_IKCONFIG @@ -0,0 +1 @@ +CONFIG_IKCONFIG=m diff --git a/redhat/configs/rhel/generic/CONFIG_IKCONFIG_PROC b/redhat/configs/rhel/generic/CONFIG_IKCONFIG_PROC new file mode 100644 index blahblah..blahblah 100644 --- /dev/null +++ b/redhat/configs/rhel/generic/CONFIG_IKCONFIG_PROC @@ -0,0 +1 @@ +CONFIG_IKCONFIG_PROC=y -- https://gitlab.com/cki-project/kernel-ark/-/merge_requests/3747 -- _______________________________________________ kernel mailing list -- kernel@lists.fedoraproject.org To unsubscribe send an email to kernel-le...@lists.fedoraproject.org Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/ List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedoraproject.org/archives/list/kernel@lists.fedoraproject.org Do not reply to spam, report it: https://pagure.io/fedora-infrastructure/new_issue