Skip to content

Commit 1d508e5

Browse files
committed
tests: build: rust: switch from SHA1 to SHA256 for module signing
Root cause is unclear but it seems that attempts to build with SHA1 on Fedora 41 are failing. We need to keep an eye on this for other build scripts. Signed-off-by: Jakub Kicinski <[email protected]>
1 parent b74b66f commit 1d508e5

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

tests/patch/build_clang_rust/build_clang_rust.sh

+6
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,12 @@ prep_config() {
2020
# KVM has its own WERROR control, and it currently does generate errors!
2121
./scripts/config --file $output_dir/.config -d kvm_werror
2222

23+
# Unclear if this is related to Rust but we seem to get key generation
24+
# issues with SHA1 on Fedora 41. Switch to SHA256.
25+
./scripts/config --file $output_dir/.config -d module_sig_sha1
26+
./scripts/config --file $output_dir/.config -e module_sig_sha256
27+
./scripts/config --file $output_dir/.config --set-str module_sig_hash sha256
28+
2329
# allmodconfig is not sufficient to get Rust support enabled. So
2430
# flip some options.
2531

0 commit comments

Comments
 (0)