diff --git a/Dockerfile.bundled b/Dockerfile.bundled new file mode 100644 index 00000000..87394fc5 --- /dev/null +++ b/Dockerfile.bundled @@ -0,0 +1,16 @@ +FROM debian:buster + +RUN set -eux \ + && export DEBIAN_FRONTEND=noninteractive \ + && apt-get upgrade;apt-get update \ + && apt install -y build-essential python3 python3-pip \ + && apt-get -y --purge autoremove \ + && apt-get clean \ + && rm -rf /var/lib/apt/lists/* + + +RUN pip3 install fdt + +COPY . /src +WORKDIR /src +ENTRYPOINT /bin/bash diff --git a/README.rst b/README.rst index a1e61cc8..d28c04cc 100644 --- a/README.rst +++ b/README.rst @@ -69,6 +69,15 @@ you will need to define a few variables in order to compile it:: export BL60X_SDK_PATH=/path/to/this/repo export CONFIG_CHIP_NAME=bl602 +Docker +==== + +To set up a development environment in Docker, and do a full build of all the example projects, using the bundled toolchain:: + + docker build -t bl602sdk -f Dockerfile.bundled + docker run -t -i --rm bl602sdk + # make + Hardware -------- BL602 is a 32-bit RISC-V based combo chipset supporting Wi-Fi and BLE (Bluetooth