From: Scott Weaver <scwea...@redhat.com>

redhat: automotive: define CONFIG_RH_AUTOMOTIVE

This introduces a Red Hat only config used to define code that differs
from RHEL when building the automotive kernel.

Signed-off-by: Scott Weaver <scwea...@redhat.com>

diff --git a/Kconfig.redhat b/Kconfig.redhat
index blahblah..blahblah 100644
--- a/Kconfig.redhat
+++ b/Kconfig.redhat
@@ -20,4 +20,11 @@ config RH_KABI_SIZE_ALIGN_CHECKS
          be disabled in case of a debug build, because debug builds
          allow to change struct sizes.
 
+config RH_AUTOMOTIVE
+       bool "Enable automotive kernel code"
+       default n
+       help
+         This option controls whether code is included in the automotive
+         kernel build. If you are building an automotive kernel, say Y.
+
 endmenu
diff --git a/redhat/configs/common/generic/CONFIG_RH_AUTOMOTIVE 
b/redhat/configs/common/generic/CONFIG_RH_AUTOMOTIVE
new file mode 100644
index blahblah..blahblah 100644
--- /dev/null
+++ b/redhat/configs/common/generic/CONFIG_RH_AUTOMOTIVE
@@ -0,0 +1 @@
+# CONFIG_RH_AUTOMOTIVE is not set
diff --git a/redhat/configs/rhel/automotive/generic/CONFIG_RH_AUTOMOTIVE 
b/redhat/configs/rhel/automotive/generic/CONFIG_RH_AUTOMOTIVE
new file mode 100644
index blahblah..blahblah 100644
--- /dev/null
+++ b/redhat/configs/rhel/automotive/generic/CONFIG_RH_AUTOMOTIVE
@@ -0,0 +1 @@
+CONFIG_RH_AUTOMOTIVE=y

--
https://gitlab.com/cki-project/kernel-ark/-/merge_requests/3678

-- 
_______________________________________________
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

Reply via email to