SDK is a set of scripts to aid in cross compilation and disk image construction. To use the SDK, either fetch a prebuild image from the registry or build it yourself.
Build and bundle all tools into an image, including the emulator, toolchain and utilities, this may take a while.
Requirements:
- Docker 20.x
- GNU Make >= 3.81
Example:
make config host=riscv64-lp64d-linux-musl # config
make build # build
make run # use
Use make help
to list commands, make list
to list configs.
make run
- Override
.config
:
make run IMAGE=riscv64-lp64d-linux-musl:latest
- run with a different directory:
cd /path/to/src
make -srC /path/to/sdk/ run