forked from adafruit/circuitpython
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathREADME.splitkb
More file actions
45 lines (37 loc) · 1.43 KB
/
README.splitkb
File metadata and controls
45 lines (37 loc) · 1.43 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
# Setup
After your usual `git clone git@github.com:adafruit/circuitpython.git && cd circuitpython`,
on your local machine, run:
```bash
docker image build -t circuitpython-image -f ./Dockerfile.splitkb .
docker container create --name circuitpython-container -it --user $(id -u):$(id -g) -w /circuitpython -v "$(pwd)":/circuitpython circuitpython-image /bin/bash
docker container start -i circuitpython-container
```
The last command enters the Docker container
_Note: Docker may give an error like "groups: cannot find name for group ID 1000". Ignore this._
Inside the docker container, complete setup with:
```bash
cd /circuitpython/ports/raspberrypi && make fetch-port-submodules
cd /circuitpython && make -j$(getconf _NPROCESSORS_ONLN) -C mpy-cross
```
The container is now ready for use.
If you wish to, exit with `exit`, or Ctrl-D.
# Building
Enter the container with `docker container start -i circuitpython-container`
Run:
```bash
cd /circuitpython/ports/raspberrypi && make -j$(getconf _NPROCESSORS_ONLN) BOARD=splitkb_liatris
```
This generates circuitpython/ports/raspberrypi/build-splitkb_liatris/firmware.uf2
# Committing
Enter the container with `docker container start -i circuitpython-container`
Run:
```bash
cd /circuitpython && pre-commit run --all-files
```
# Cleanup
Exit the container and clean up on local machine using:
```bash
docker container rm circuitpython-container
docker image rm circuitpython-image
docker image prune
```