Add basic debian-based dockerfile to test building

This commit is contained in:
greigdp 2020-12-18 01:49:06 +00:00 committed by Marek Kraus
parent 4c2e1c6dbb
commit 2c9613d2f6
2 changed files with 25 additions and 0 deletions

16
Dockerfile.bundled Normal file
View File

@ -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

View File

@ -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