Skip to content

Commit 2c9613d

Browse files
greigdpgamelaster
authored andcommitted
Add basic debian-based dockerfile to test building
1 parent 4c2e1c6 commit 2c9613d

File tree

2 files changed

+25
-0
lines changed

2 files changed

+25
-0
lines changed

Dockerfile.bundled

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
FROM debian:buster
2+
3+
RUN set -eux \
4+
&& export DEBIAN_FRONTEND=noninteractive \
5+
&& apt-get upgrade;apt-get update \
6+
&& apt install -y build-essential python3 python3-pip \
7+
&& apt-get -y --purge autoremove \
8+
&& apt-get clean \
9+
&& rm -rf /var/lib/apt/lists/*
10+
11+
12+
RUN pip3 install fdt
13+
14+
COPY . /src
15+
WORKDIR /src
16+
ENTRYPOINT /bin/bash

README.rst

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,15 @@ you will need to define a few variables in order to compile it::
6969
export BL60X_SDK_PATH=/path/to/this/repo
7070
export CONFIG_CHIP_NAME=bl602
7171

72+
Docker
73+
====
74+
75+
To set up a development environment in Docker, and do a full build of all the example projects, using the bundled toolchain::
76+
77+
docker build -t bl602sdk -f Dockerfile.bundled
78+
docker run -t -i --rm bl602sdk
79+
# make
80+
7281
Hardware
7382
--------
7483
BL602 is a 32-bit RISC-V based combo chipset supporting Wi-Fi and BLE (Bluetooth

0 commit comments

Comments
 (0)