This is a example of compiling AW31N project with docker.
The example uses the transfer
demo in the AW31N_SDK
.
-
Pull the AW31N SDK docker
docker pull ghcr.io/volwaves/aw31n-sdk:latest
-
Run the command below in the directory of the
transfer
folder.docker run --rm \ -v $(pwd)/transfer:/SDK/apps/docker/transfer \ ghcr.io/volwaves/aw31n-sdk:latest /bin/bash -c "cd transfer/board/bd47 && make && cp -f /SDK/apps/app/post_build/bd47/update.ufw /SDK/apps/docker/transfer/post_build/"
- The command will create a
aw31n-sdk
container with thetransfer
folder mounted at the ready to compile path in the container. - Then, the tranfer demo will be compiled in the container.
- Finally, the firmware would be copied out.
- The command will create a
Tip
In practice, you should change transfer
to your actual project folder name.
- The compiled firmware
update.ufw
would be copied intotransfer/post_build
as below.transfer ├── board ├── config ├── examples ├── include ├── modules ├── post_build │ └── update.ufw <---- compiled firmware here!!! ├── app_main.c └── version.c