[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
- [RFC PATCH 0/7] Support writing grub modules in Rust, Daniel Axtens, 2021/08/24
- [RFC PATCH 1/7] emu: support grub_memalign, Daniel Axtens, 2021/08/24
- [RFC PATCH 2/7] Rust: module build infrastructure, Daniel Axtens, 2021/08/24
- [RFC PATCH 3/7] Rust: add a slightly more idiomatic wrapper around command handling, Daniel Axtens, 2021/08/24
- [RFC PATCH 4/7] Rust: add the rust_hello module, Daniel Axtens, 2021/08/24
- [RFC PATCH 5/7] powerpc: Support Rust,
Daniel Axtens <=
- [RFC PATCH 6/7] x86_64-efi: Support Rust, Daniel Axtens, 2021/08/24
- [RFC PATCH 7/7] arm64-efi: Support Rust, Daniel Axtens, 2021/08/24
- Re: [RFC PATCH 0/7] Support writing grub modules in Rust, Heinrich Schuchardt, 2021/08/25