https://github.com/microbit-foundation/docker-codal-microbit-v2-llvm
https://github.com/microbit-foundation/docker-codal-microbit-v2-llvm
Last synced: 4 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/microbit-foundation/docker-codal-microbit-v2-llvm
- Owner: microbit-foundation
- License: mit
- Created: 2023-09-14T10:35:00.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2023-09-27T08:58:48.000Z (almost 3 years ago)
- Last Synced: 2025-07-08T08:46:35.649Z (12 months ago)
- Language: Dockerfile
- Size: 12.7 KB
- Stars: 0
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# docker-codal-microbit-v2-llvm
To build the docker image:
```
docker build -t "microbit-llvm" .
```
To run the docker image:
```
docker run --rm -v $(pwd):/home microbit-llvm main.cpp
```
To jump into a container:
```
docker run -it --rm microbit-llvm
```
Steps to extract the hex (Users passing their own main does not work as of now, but this is a good foundation):
```
docker build -t "microbit-llvm" .
docker run --name llvm microbit-llvm:latest
docker start llvm
docker cp llvm:/home/microbit-v2-samples-llvm/build/MICROBIT.hex .
```
To extract the newlib artefact (This will need optimising before sending to browser):
```
docker cp llvm:/home/archive.tar .
```