[PATCH] build: Use -frandom-seed=0

Sebastian Huber sebastian.huber at embedded-brains.de
Tue Feb 27 13:23:34 UTC 2024


This makes the build reproducible.
---
 spec/build/bsps/opto0.yml | 1 +
 spec/build/bsps/opto1.yml | 1 +
 spec/build/bsps/opto2.yml | 1 +
 spec/build/bsps/optog.yml | 1 +
 spec/build/bsps/optos.yml | 1 +
 5 files changed, 5 insertions(+)

diff --git a/spec/build/bsps/opto0.yml b/spec/build/bsps/opto0.yml
index de7ad1515e..bb59ce8cfa 100644
--- a/spec/build/bsps/opto0.yml
+++ b/spec/build/bsps/opto0.yml
@@ -13,6 +13,7 @@ default:
   - -g
   - -fdata-sections
   - -ffunction-sections
+  - -frandom-seed=0
 description: |
   Default optimization flags for C and C++ compilers.
 enabled-by: true
diff --git a/spec/build/bsps/opto1.yml b/spec/build/bsps/opto1.yml
index d3e0b6d361..b3bfea2dec 100644
--- a/spec/build/bsps/opto1.yml
+++ b/spec/build/bsps/opto1.yml
@@ -13,6 +13,7 @@ default:
   - -g
   - -fdata-sections
   - -ffunction-sections
+  - -frandom-seed=0
 description: |
   Default optimization flags for C and C++ compilers.
 enabled-by: true
diff --git a/spec/build/bsps/opto2.yml b/spec/build/bsps/opto2.yml
index ff4f1d23e0..068f2f075d 100644
--- a/spec/build/bsps/opto2.yml
+++ b/spec/build/bsps/opto2.yml
@@ -13,6 +13,7 @@ default:
   - -g
   - -fdata-sections
   - -ffunction-sections
+  - -frandom-seed=0
 description: |
   Default optimization flags for C and C++ compilers.
 enabled-by: true
diff --git a/spec/build/bsps/optog.yml b/spec/build/bsps/optog.yml
index de20502c78..7149d91e3b 100644
--- a/spec/build/bsps/optog.yml
+++ b/spec/build/bsps/optog.yml
@@ -13,6 +13,7 @@ default:
   - -g
   - -fdata-sections
   - -ffunction-sections
+  - -frandom-seed=0
 description: |
   Default optimization flags for C and C++ compilers.
 enabled-by: true
diff --git a/spec/build/bsps/optos.yml b/spec/build/bsps/optos.yml
index a39447ef36..12c96621f9 100644
--- a/spec/build/bsps/optos.yml
+++ b/spec/build/bsps/optos.yml
@@ -13,6 +13,7 @@ default:
   - -g
   - -fdata-sections
   - -ffunction-sections
+  - -frandom-seed=0
 description: |
   Default optimization flags for C and C++ compilers.
 enabled-by: true
-- 
2.35.3



More information about the devel mailing list