[OS-BUILD PATCHv2 1/2] redhat: enable Rust code in ELN

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

 



From: Scott Weaver <scweaver@xxxxxxxxxx>

redhat: enable Rust code in ELN

Rust is already supported in Fedora. This moves the essential Rust
support configs to common, enabling it in ELN.

Signed-off-by: Scott Weaver <scweaver@xxxxxxxxxx>

diff --git a/redhat/configs/common/generic/CONFIG_RUST b/redhat/configs/common/generic/CONFIG_RUST
index blahblah..blahblah 100644
--- a/redhat/configs/common/generic/CONFIG_RUST
+++ b/redhat/configs/common/generic/CONFIG_RUST
@@ -1 +1 @@
-# CONFIG_RUST is not set
+CONFIG_RUST=y
diff --git a/redhat/configs/common/generic/CONFIG_RUST_OVERFLOW_CHECKS b/redhat/configs/common/generic/CONFIG_RUST_OVERFLOW_CHECKS
index blahblah..blahblah 100644
--- a/redhat/configs/common/generic/CONFIG_RUST_OVERFLOW_CHECKS
+++ b/redhat/configs/common/generic/CONFIG_RUST_OVERFLOW_CHECKS
@@ -1 +1 @@
-# CONFIG_RUST_OVERFLOW_CHECKS is not set
+CONFIG_RUST_OVERFLOW_CHECKS=y
diff --git a/redhat/configs/fedora/generic/CONFIG_RUST b/redhat/configs/fedora/generic/CONFIG_RUST
deleted file mode 100644
index blahblah..blahblah 0
--- a/redhat/configs/fedora/generic/CONFIG_RUST
+++ /dev/null
@@ -1 +0,0 @@
-CONFIG_RUST=y
diff --git a/redhat/configs/fedora/generic/CONFIG_RUST_OVERFLOW_CHECKS b/redhat/configs/fedora/generic/CONFIG_RUST_OVERFLOW_CHECKS
deleted file mode 100644
index blahblah..blahblah 0
--- a/redhat/configs/fedora/generic/CONFIG_RUST_OVERFLOW_CHECKS
+++ /dev/null
@@ -1 +0,0 @@
-CONFIG_RUST_OVERFLOW_CHECKS=y
diff --git a/redhat/configs/rhel/generic/CONFIG_EXTENDED_MODVERSIONS b/redhat/configs/rhel/generic/CONFIG_EXTENDED_MODVERSIONS
index blahblah..blahblah 100644
--- a/redhat/configs/rhel/generic/CONFIG_EXTENDED_MODVERSIONS
+++ b/redhat/configs/rhel/generic/CONFIG_EXTENDED_MODVERSIONS
@@ -1 +1 @@
-# CONFIG_EXTENDED_MODVERSIONS is not set
+CONFIG_EXTENDED_MODVERSIONS=y
diff --git a/redhat/configs/rhel/generic/CONFIG_GENDWARFKSYMS b/redhat/configs/rhel/generic/CONFIG_GENDWARFKSYMS
index blahblah..blahblah 100644
--- a/redhat/configs/rhel/generic/CONFIG_GENDWARFKSYMS
+++ b/redhat/configs/rhel/generic/CONFIG_GENDWARFKSYMS
@@ -1 +1 @@
-# CONFIG_GENDWARFKSYMS is not set
+CONFIG_GENDWARFKSYMS=y
diff --git a/redhat/configs/rhel/generic/CONFIG_MODVERSIONS b/redhat/configs/rhel/generic/CONFIG_MODVERSIONS
index blahblah..blahblah 100644
--- a/redhat/configs/rhel/generic/CONFIG_MODVERSIONS
+++ b/redhat/configs/rhel/generic/CONFIG_MODVERSIONS
@@ -1 +1 @@
-CONFIG_MODVERSIONS=y
+# CONFIG_MODVERSIONS is not set
diff --git a/redhat/configs/rhel/generic/x86/CONFIG_SAMPLES_RUST b/redhat/configs/rhel/generic/x86/CONFIG_SAMPLES_RUST
new file mode 100644
index blahblah..blahblah 100644
--- /dev/null
+++ b/redhat/configs/rhel/generic/x86/CONFIG_SAMPLES_RUST
@@ -0,0 +1 @@
+# CONFIG_SAMPLES_RUST is not set
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
@@ -690,9 +690,7 @@ Provides: installonlypkg(kernel)
 BuildRequires: kmod, bash, coreutils, tar, git-core, which
 BuildRequires: bzip2, xz, findutils, m4, perl-interpreter, perl-Carp, perl-devel, perl-generators, make, diffutils, gawk, %compression
 BuildRequires: gcc, binutils, redhat-rpm-config, hmaccalc, bison, flex, gcc-c++
-%if 0%{?fedora}
-BuildRequires: rust, rust-src, bindgen, rustfmt
-%endif
+BuildRequires: rust, rust-src, bindgen, rustfmt, clippy
 BuildRequires: net-tools, hostname, bc, elfutils-devel
 BuildRequires: dwarves
 BuildRequires: python3

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

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