From: Ricardo Robaina <[email protected]>

config: enable kernel .config support

Issue: https://issues.redhat.com/browse/RHEL-82530

On image mode, /boot directory does not exist. For this reason, currently,
there's no way to check the configuration options that were used to build
the currently running kernel in this context. Note that Several kernel-tests
rely on that kind of information [1].

This patch enables CONFIG_IKCONFIG and CONFIG_IKCONFIG_PROC in order to expose
kernel .config data via /proc/config.gz, which can be used to check kconfig
status both on package and image mode.

[1] kernel-tests]$ grep -rni "/boot/config-*" |wc -l
140

Signed-off-by: Ricardo Robaina <[email protected]>

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 -- [email protected]
To unsubscribe send an email to [email protected]
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/[email protected]
Do not reply to spam, report it: 
https://pagure.io/fedora-infrastructure/new_issue

Reply via email to