For the complete documentation navigate the BMBuildKit website
The following is a quick example on how to get started with a demo Lattice ice40 stick FPGA and a blinky led algorithm.
git clone https://github.com/BondMachineHQ/BMBuildkit
cd BMBuildkit
go install ./cmd/bmctl
N.B. you need an host with icepack, nextpnr and yosys installed on your host. In alternative you can try with the pre-built steps below.
bmctl build ./ -f BMFile -t <dockerhub USERNAME>/bmtest:built
bmctl build ./ -f BMFile.localfirmware -t <dockerhub USERNAME>/bmtest:pre-built
N.B. you need an host with iceprog installed.
bmctl load <dockerhub USERNAME>/bmtest:pre-built lattice/ice40/yosys
docker run -e MODULE_NAME=blinky -e SYNTH_FILE=blinky.v -v $PWD/examples/blinky:/opt/source -ti dciangot/yosys bash