xbb / anduril2-build

Container image for building Anduril 2 flashlight firmware

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Anduril 2 build tools

A simple container image to compile Anduril 2 firmwares

I use podman in this case but you can use docker

Build the container image

Clone the repo and cd into the directory

Build the image

podman build -t anduril2-build:latest .

How to use

Get anduril2 source code

If using breezy:

brz branch lp:~toykeeper/flashlight-firmware/anduril2

Or simply grab an archive and extract it somewhere

Run the container mapping the source directory to /src and specify the desired action

Assuming source is extracted to ~/projects/anduril2

Assuming the container image name/tag is "anduril2:latest"

Build all the firmwares with either "make" or "build" action

podman run --rm -v ~/projects/anduril2:/src anduril2-build:latest build

Build only targets matching a pattern, for example "ts10"

podman run --rm -v ~/projects/anduril2:/src anduril2-build:latest build ts10

Clean (same as make clean)

podman run --rm -v ~/projects/anduril2:/src anduril2-build:latest clean

Runs make (default target is "all", which builds all the firmwares)

podman run --rm -v ~/projects/anduril2:/src anduril2-build:latest make

Drop to bash shell (don't forget -it arguments)

podman run -it --rm -v ~/projects/anduril2:/src anduril2-build:latest bash

Show help

podman run --rm -v ~/projects/anduril2:/src anduril2-build:latest help

Compiled hex files are found in ToyKeeper/spaghetti-monster/anduril/

About

Container image for building Anduril 2 flashlight firmware


Languages

Language:Shell 62.5%Language:Dockerfile 37.5%