[OS-BUILD PATCH] redhat: enable changes to build rt variants

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: Clark Williams <williams@xxxxxxxxxx>

redhat: enable changes to build rt variants

Set the %with_realtime specfile variable to be 1 and build the
kernel-rt variant with ARK build jobs.

Add the CONFIG_PREEMPT_RT config and set default values for
PREEMPT_AUTO and PREEMPT_RT for the stock kernels and variants.

Signed-off-by: Clark Williams <williams@xxxxxxxxxx>

diff --git a/redhat/configs/common/generic/CONFIG_PREEMPT_AUTO b/redhat/configs/common/generic/CONFIG_PREEMPT_AUTO
new file mode 100644
index blahblah..blahblah 100644
--- /dev/null
+++ b/redhat/configs/common/generic/CONFIG_PREEMPT_AUTO
@@ -0,0 +1 @@
+# CONFIG_PREEMPT_AUTO is not set
diff --git a/redhat/configs/fedora/generic/CONFIG_PREEMPT_RT b/redhat/configs/fedora/generic/CONFIG_PREEMPT_RT
new file mode 100644
index blahblah..blahblah 100644
--- /dev/null
+++ b/redhat/configs/fedora/generic/CONFIG_PREEMPT_RT
@@ -0,0 +1 @@
+# CONFIG_PREEMPT_RT is not set
diff --git a/redhat/configs/rhel/generic/CONFIG_PREEMPT_RT b/redhat/configs/rhel/generic/CONFIG_PREEMPT_RT
new file mode 100644
index blahblah..blahblah 100644
--- /dev/null
+++ b/redhat/configs/rhel/generic/CONFIG_PREEMPT_RT
@@ -0,0 +1 @@
+# CONFIG_PREEMPT_RT is not set
diff --git a/redhat/configs/rhel/rt/generic/CONFIG_PREEMPT_AUTO b/redhat/configs/rhel/rt/generic/CONFIG_PREEMPT_AUTO
new file mode 100644
index blahblah..blahblah 100644
--- /dev/null
+++ b/redhat/configs/rhel/rt/generic/CONFIG_PREEMPT_AUTO
@@ -0,0 +1 @@
+# CONFIG_PREEMPT_AUTO is not set
diff --git a/redhat/configs/rhel/rt/generic/CONFIG_PREEMPT_RT b/redhat/configs/rhel/rt/generic/CONFIG_PREEMPT_RT
index blahblah..blahblah 100644
--- a/redhat/configs/rhel/rt/generic/CONFIG_PREEMPT_RT
+++ b/redhat/configs/rhel/rt/generic/CONFIG_PREEMPT_RT
@@ -1 +1 @@
-# CONFIG_PREEMPT_RT is not set
+CONFIG_PREEMPT_RT=y
diff --git a/redhat/kernel.spec.template b/redhat/kernel.spec.template
index blahblah..blahblah 100644
--- a/redhat/kernel.spec.template
+++ b/redhat/kernel.spec.template
@@ -207,7 +207,7 @@ Summary: The Linux kernel
 # kernel-64k (aarch64 kernel with 64K page_size)
 %define with_arm64_64k %{?_without_arm64_64k: 0} %{?!_without_arm64_64k: 1}
 # kernel-rt (x86_64 and aarch64 only PREEMPT_RT enabled kernel)
-%define with_realtime  %{?_with_realtime:     1} %{?!_with_realtime:     0}
+%define with_realtime  %{?_without_realtime:  0} %{?!_without_realtime:  1}
 
 # Supported variants
 #            with_base with_debug    with_gcov
@@ -1871,7 +1871,7 @@ chmod +x scripts/checkpatch.pl
 mv COPYING COPYING-%{specrpmversion}-%{release}
 
 # on linux-next prevent scripts/setlocalversion from mucking with our version numbers
-rm -f localversion-next
+rm -f localversion-next localversion-rt
 
 # Mangle /usr/bin/python shebangs to /usr/bin/python3
 # Mangle all Python shebangs to be Python 3 explicitly

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

-- 
_______________________________________________
kernel mailing list -- kernel@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to kernel-leave@xxxxxxxxxxxxxxxxxxxxxxx
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@xxxxxxxxxxxxxxxxxxxxxxx
Do not reply to spam, report it: https://pagure.io/fedora-infrastructure/new_issue




[Index of Archives]     [Fedora General Discussion]     [Older Fedora Users Archive]     [Fedora Advisory Board]     [Fedora Security]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [ATA RAID]     [Fedora Marketing]     [Fedora Mentors]     [Fedora Package Announce]     [Fedora Package Review]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Coolkey]     [Yum Users]     [Tux]     [Yosemite News]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [USB]     [Asterisk PBX]

  Powered by Linux