Skip to content

Commit d2d7dac

Browse files
author
B I Mohammed Abbas
committed
Adding myself as vxworks target maintainer
1 parent 0ea5694 commit d2d7dac

File tree

1 file changed

+46
-0
lines changed

1 file changed

+46
-0
lines changed

Diff for: src/doc/rustc/src/platform-support/vxworks.md

+46
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
# VxWorks
2+
3+
**Tier: 3 (with Host Tools)**
4+
5+
VxWorks is a real-time operating system (RTOS) developed by Wind River Systems as proprietary software. [VxWorks Datasheet](https://www.windriver.com/themes/Windriver/pdf/vxworks-7-datasheet.pdf)
6+
7+
## Target Maintainers
8+
9+
- B I Mohammed Abbas ([@biabbas](https://github.com/biabbas))
10+
11+
## Requirements
12+
13+
Development for this target involves cross-compiling from a host environment using a VxWorks Workbench and the Wind River C++ (wr-c++) driver.
14+
15+
## Building the Target
16+
17+
To build Rust binaries for VxWorks, you'll need a VxWorks 7 Workbench and Board Support Package (BSP) for each target. Supported VxWorks targets include:
18+
- aarch64-wrs-vxworks
19+
- armv7-wrs-vxworks-eabihf
20+
- i686-wrs-vxworks
21+
- powerpc-wrs-vxworks
22+
- powerpc-wrs-vxworks-spe
23+
- powerpc64-wrs-vxworks
24+
- x86_64-wrs-vxworks
25+
26+
To enable a target for Rust (`rustc`):
27+
```toml
28+
[build]
29+
build-stage = 1
30+
target = ["aarch64-wrs-vxworks"]
31+
```
32+
33+
## Building Rust Programs
34+
35+
Once `rustc` supports the target and necessary library artifacts are available, Rust programs can be built for VxWorks:
36+
```sh
37+
rustc --target aarch64-wrs-vxworks your-code.rs
38+
```
39+
40+
## Testing
41+
42+
Currently, there is no support for running the Rust compiler (`rustc`) test suite for VxWorks targets.
43+
44+
## Cross-compilation toolchains and C code
45+
46+
The targets do support `C` code. To build compatible `C` code, you have to use wr-c++/wr-cc with the same compiler and flags.

0 commit comments

Comments
 (0)