mirror of
https://github.com/pine64/bl_iot_sdk.git
synced 2024-10-02 21:12:27 +00:00
Add basic debian-based dockerfile to test building
This commit is contained in:
parent
4c2e1c6dbb
commit
2c9613d2f6
16
Dockerfile.bundled
Normal file
16
Dockerfile.bundled
Normal 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
|
@ -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 BL60X_SDK_PATH=/path/to/this/repo
|
||||||
export CONFIG_CHIP_NAME=bl602
|
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
|
Hardware
|
||||||
--------
|
--------
|
||||||
BL602 is a 32-bit RISC-V based combo chipset supporting Wi-Fi and BLE (Bluetooth
|
BL602 is a 32-bit RISC-V based combo chipset supporting Wi-Fi and BLE (Bluetooth
|
||||||
|
Loading…
Reference in New Issue
Block a user