Commit Graph

6 Commits

Author SHA1 Message Date
fe8eae25e9 openwrt-builder-commit: For commit-specific OpenWrt builds
Now we can set up an OpenWrt builder as we want -- just run

    make built/openwrt-builder-${commit}.sentinel

and then

    docker run ${args} openwrt-builder-${commit} ${CMD}

This will won't need to pull down everything from scratch: the image
is already cached and has everything it needs to compile.

As for what ${args} would need to be for this to work:

- You need to mount a +x build system prep script to /input.sh

- You need to mount a +x build system output extractor to /output.sh

- You need to mount a folder with input resources to /input

- You need to mount an output folder to /output

So, /input.sh could `cp /input/diffconfig /builder/openwrt/.config`,
then cd to /builder/openwrt and run `make defconfig`. The ${CMD} could
then actually build, and /output.sh could collect logs and build
artefacts to /output.

But each of those build system setups can be disincluded from the
main build-system setup per-commit. We no longer have to repeatedly
setup the entire build system just to keep build environments for
different boards separate: only the things that are different between
build trees need that to be done.

Oh, and no more builds spoiled by stale artefacts :D
2021-02-08 15:11:41 +00:00
15d7ea04c7 gitignore built/ -- for build sentinels 2021-02-08 15:06:19 +00:00
07d3c4acf5 openwrt-builder: dockerfile for an openwrt builder
This is a base builder -- it sets up *most* of the
environment right and provides a great cache; later we can git pull
again and check out the right commit, without needing to invalidate
this builder and re-clone OpenWrt again.
2021-02-08 15:04:23 +00:00
c26800155e Add an include guard to the main makeflie 2021-02-08 15:03:41 +00:00
98a0a68d57 Set up certain environment variables into a vars file 2021-02-08 14:54:02 +00:00
fc6902981c Initial setup
The point of this is to separate dockerfiles and build them on top of
each other wherever possible.

Then we can build them interdependently with makefiles!
2021-02-06 21:47:58 +00:00