You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
+
19
+
- aarch64-wrs-vxworks
20
+
- armv7-wrs-vxworks-eabihf
21
+
- i686-wrs-vxworks
22
+
- powerpc-wrs-vxworks
23
+
- powerpc-wrs-vxworks-spe
24
+
- powerpc64-wrs-vxworks
25
+
- x86_64-wrs-vxworks
26
+
27
+
To enable a target for Rust (`rustc`):
28
+
29
+
```toml
30
+
[build]
31
+
build-stage = 1
32
+
target = ["aarch64-wrs-vxworks"]
33
+
```
34
+
35
+
## Building Rust Programs
36
+
37
+
Once `rustc` supports the target and necessary library artifacts are available, Rust programs can be built for VxWorks:
38
+
39
+
```sh
40
+
rustc --target aarch64-wrs-vxworks your-code.rs
41
+
```
42
+
43
+
## Testing
44
+
45
+
Currently, there is no support for running the Rust compiler (`rustc`) test suite for VxWorks targets.
46
+
47
+
48
+
## Cross-compilation toolchains and C code
49
+
50
+
The targets do support `C` code.
51
+
To build compatible `C` code, you have to use wr-c++/wr-cc with the same compiler and flags.
0 commit comments