tree: 13dc2b9e4dd0d8ea7672367f2d9987813b00c6af [path history] [tgz]
  1. Dockerfile.alpine
  2. Dockerfile.anita
  3. Dockerfile.centos
  4. Dockerfile.debian-debootstrap
  5. Dockerfile.djgpp
  6. Dockerfile.fedora
  7. Dockerfile.qemu-user-static
  8. Dockerfile.ubuntu-debootstrap
  9. Makefile
  10. Makefile.anita
  11. Makefile.targets


Manibuilder is a set of Dockerfiles for manic build testing, held together by some make-foo. Most of the Dockerfiles make use of multiarch images. This way we can test building on many platforms supported by Qemu. The idea is to test in environments as close as possible to those of potential users, i.e. no cross-compiling (with some exceptions).

Make targets

For each supported target OS/version/architecture exists a tag target, for instance alpine:amd64-v3.7. These targets will automatically check for existence of their respective Docker images (sub target -check-build), and build them if necessary (-build). Finally, flashrom revision $(TEST_REVISION) is fetched and build tested.

The results will be kept by Docker as stopped containers and can be accessed with the -shell target.

There are some additional targets that form sets of the tag targets:

  • default: runs a preselected subset of all supported tags.
  • native: runs all tags native to the host architecture.
  • all: runs all supported tags.

For each of these show- lists the included tags.

For preparation of Qemu for the multiarch images, there is the register target. It has to be run once per boot, though as it uses a privileged Docker container, that is kept as a manual step.

Usage example

The most common use case may be testing the current upstream master branch which is the default for $(TEST_REVISION). You'll need roughly 20GiB for the Docker images. Might look like this:

$ # have to register Qemu first:
$ make register
$ # run the default target:
$ make -j4
debian-debootstrap:mips-stretch: 2
debian-debootstrap:mips-sid: 2
debian-debootstrap:mips-buster: 2
ubuntu-debootstrap:powerpc-xenial: 2
djgpp:6.1.0: 2

For each tag that returns with a non-zero exit code, the tag and actual exit code is printed. An exit code of 2 is most likely as that is what make returns on failure. Other exit codes might hint towards a problem in the setup. Failing tags can then be investigated individually with the -shell target, e.g.:

$ make debian-debootstrap:mips-sid-shell
mani@63536fc102a5:~/flashrom$ make
libflashrom.c:386:12: error: 'flashrom_layout_parse_fmap' defined but not used [-Werror=unused-function]
 static int flashrom_layout_parse_fmap(struct flashrom_layout **layout,
cc1: all warnings being treated as errors
make: *** [Makefile:1075: libflashrom.o] Error 1
$ # uh-huh, might be a problem with big-endian #if foo