grub-devel
[Top][All Lists]
Advanced

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

[RFC PATCH 5/7] powerpc: Support Rust


From: Daniel Axtens
Subject: [RFC PATCH 5/7] powerpc: Support Rust
Date: Tue, 24 Aug 2021 23:32:41 +1000

This is all required to get Rust working with powerpc.

Again based mostly on the rustc target.json emitter with a few tweaks
for grub.

To get the rust toolchain:

rustup target add powerpc-unknown-linux-gnu --toolchain nightly

Signed-off-by: Daniel Axtens <dja@axtens.net>
---
 .../lib/rust/targets/powerpc-ieee1275.json    | 28 +++++++++++++++++++
 1 file changed, 28 insertions(+)
 create mode 100644 grub-core/lib/rust/targets/powerpc-ieee1275.json

diff --git a/grub-core/lib/rust/targets/powerpc-ieee1275.json 
b/grub-core/lib/rust/targets/powerpc-ieee1275.json
new file mode 100644
index 000000000000..9ed363373527
--- /dev/null
+++ b/grub-core/lib/rust/targets/powerpc-ieee1275.json
@@ -0,0 +1,28 @@
+{
+  "arch": "powerpc",
+  "data-layout": "E-m:e-p:32:32-i64:64-n32",
+  "dynamic-linking": true,
+  "env": "gnu",
+  "llvm-target": "powerpc-unknown-linux-gnu",
+  "max-atomic-width": 32,
+  "os": "none",
+  "position-independent-executables": true,
+  "pre-link-args": {
+    "gcc": [
+      "-m32"
+    ]
+  },
+  "target-endian": "big",
+  "target-family": [
+    "unix"
+  ],
+  "target-mcount": "_mcount",
+  "target-pointer-width": "32",
+  "features": "-altivec,-vsx,-hard-float",
+  "relocation-model": "static",
+  "code-model": "large",
+  "disable-redzone": true,
+  "panic-strategy": "abort",
+  "singlethread": true,
+  "no-builtins": true
+}
-- 
2.30.2




reply via email to

[Prev in Thread] Current Thread [Next in Thread]