22
33** Tier: 3**
44
5- Motorola 680x0 Linux
5+ Bare metal Motorola 680x0
66
77## Designated Developers
88
@@ -12,15 +12,15 @@ Motorola 680x0 Linux
1212
1313## Requirements
1414
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.
1717
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
1919architecture which will automatically pull in additional dependencies such as
2020the glibc cross development package:
2121
22- ``` text
23- # apt install g++-m68k-linux-gnu
22+ ``` sh
23+ apt install g++-m68k-linux-gnu
2424```
2525
2626Binaries 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.
8383Recommended ` .cargo/config.toml ` :
8484``` toml
8585[unstable ]
86- build-std = [" panic_abort" ," core" , " alloc" ]
86+ build-std = [" panic_abort" , " core" , " alloc" ]
8787
8888[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
9090linker = " m68k-linux-gnu-ld"
9191
9292# the mold linker also supports m68k, remove the above line and uncomment the
@@ -97,14 +97,14 @@ linker = "m68k-linux-gnu-ld"
9797
9898Rust programs can be built for this target using:
9999
100- ``` text
100+ ``` sh
101101cargo build --target m68k-unknown-none-elf
102102```
103103
104104Very simple programs can be run using the ` qemu-m68k-static ` program:
105105
106- ``` text
107- $ qemu-m68k-static your-code
106+ ``` sh
107+ qemu-m68k-static your-code
108108```
109109
110110For more complex applications, a chroot or native m68k system is required for testing.
0 commit comments