2
2
3
3
** Tier: 3**
4
4
5
- Motorola 680x0 Linux
5
+ Bare metal Motorola 680x0
6
6
7
7
## Designated Developers
8
8
@@ -12,15 +12,15 @@ Motorola 680x0 Linux
12
12
13
13
## Requirements
14
14
15
- This target requires am m68k build environment for cross-compilation which
16
- is available on Debian and Debian-based systems, openSUSE and other distributions.
15
+ This target requires an m68k build environment for cross-compilation which
16
+ is available on Debian, Debian-based systems, openSUSE, and other distributions.
17
17
18
- On Debian, it should be sufficient to install a g++ cross-compiler for the m68k
18
+ On Debian-based systems , it should be sufficient to install a g++ cross-compiler for the m68k
19
19
architecture which will automatically pull in additional dependencies such as
20
20
the glibc cross development package:
21
21
22
- ``` text
23
- # apt install g++-m68k-linux-gnu
22
+ ``` sh
23
+ apt install g++-m68k-linux-gnu
24
24
```
25
25
26
26
Binaries can be run using QEMU user emulation. On Debian-based systems, it should be
@@ -83,10 +83,10 @@ Currently there is no support to run the rustc test suite for this target.
83
83
Recommended ` .cargo/config.toml ` :
84
84
``` toml
85
85
[unstable ]
86
- build-std = [" panic_abort" ," core" , " alloc" ]
86
+ build-std = [" panic_abort" , " core" , " alloc" ]
87
87
88
88
[target .m68k-unknown-none-elf ]
89
- # there is no easily available non -linux m68k linker, so just use the linux one
89
+ # as we're building for ELF, the m68k -linux linker should be adequate
90
90
linker = " m68k-linux-gnu-ld"
91
91
92
92
# the mold linker also supports m68k, remove the above line and uncomment the
@@ -97,14 +97,14 @@ linker = "m68k-linux-gnu-ld"
97
97
98
98
Rust programs can be built for this target using:
99
99
100
- ``` text
100
+ ``` sh
101
101
cargo build --target m68k-unknown-none-elf
102
102
```
103
103
104
104
Very simple programs can be run using the ` qemu-m68k-static ` program:
105
105
106
- ``` text
107
- $ qemu-m68k-static your-code
106
+ ``` sh
107
+ qemu-m68k-static your-code
108
108
```
109
109
110
110
For more complex applications, a chroot or native m68k system is required for testing.
0 commit comments