Docker Files for OpenBK7231T_App
Build Environment for BK7231T and BK7231N
The Dockerfile.BK7231x_build_env file can be used to create a consistent Linux-based environment for building OpenBK7231T_App for the BK7231T and BK7231N platforms. This allows you to build OpenBK7231T_App on any flavor of Linux and MacOS. This should also work on Windows, but is untested.
To build the image, run from within this directory:
docker build -t openbk7231x_build --build-arg USERNAME=$USER -f Dockerfile.BK7231x_build_env .
The cd to the root of the OpenBK7231T or OpenBK7231N SDK repo that has been set up as described in the build instructions, and then start a shell prompt in the built Docker image, that binds the SDK repo as a volume in the Docker image:
docker run -it -v "$(pwd)/":/home/$USER/OpenBK7231T --user $USER openbk7231x_build /bin/bash
Change the OpenBK7231T directory name in the volume mount to OpenBK7231N if you are building for the OpenBK7231N platform.
Finally, at the Docker image's shell prompt, execute the following to build:
cd ~/OpenBK7231T/
./b.sh
Again, change the OpenBK7231T directory name to OpenBK7231N if you are building for that platform. Also, the last command may be changed to the advanced build's build_app.sh command as described in the build instructions. The build results will be placed into the host computer's file system as described in the build instructions. To exit the Docker image's shell prompt when the build is done, use the exit command.