- git
- GNU make
- GNU patch
- Upstream Gluon dependencies
For convenience, you can find a script to install those dependencies on an Ubuntu-based distribution:
install_build_dependencies.sh
Check out this repository and execute make, i.e. like this:
git clone https://github.com/freifunkMUC/site-ffm.git site-ffm
cd site-ffm
git checkout -b patched && git checkout stable
makeThe CI builds inside Gluon's official build container (gluon-build) for GLUON_GIT_REF in the Makefile, so bumping Gluon there also updates the container. The same container can be used locally:
docker pull "$(make -s gluon-build-image)"With the following command, the Makefile will then use the repo for building but will run inside the container.
Note: If the working directory is a git worktree, add a volume mount for the main git folder.
mkdir -p gluon-build output
docker run --rm -v $(pwd):/site-ffm:ro -v $(pwd)/gluon-build:/site-ffm/gluon-build:rw -v $(pwd)/output:/site-ffm/output:rw -w /site-ffm -u $UID "$(make -s gluon-build-image)" makeFull command for a lantiq-xrx200 build:
mkdir -p logs gluon-build output
docker run --rm -v $(pwd):/site-ffm:ro -v $(pwd)/gluon-build:/site-ffm/gluon-build:rw -v $(pwd)/output:/site-ffm/output:rw -w /site-ffm -u $UID "$(make -s gluon-build-image)" make V=s GLUON_TARGETS=lantiq-xrx200 |& tee logs/build_lantiq-xrx200_$(date --iso=s).logThis firmware is based on Gluon.
Look at the site configuration related Gluon documentation for information on site configuration options and examples from other communities.