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

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 <scwea...@redhat.com>

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
@@ -712,9 +712,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@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