mirror of
https://review.coreboot.org/flashrom.git
synced 2025-07-03 06:53:18 +02:00
Add Manibuilder
Add a set of Dockerfiles for build testing. If you have an x86 machine and ~20GiB free disk space, run `make register` and `make -jxx` in util/manibuilder and go eat some pizza. The former runs a privileged docker container to set binfmt_misc up for qemu (read the code, don't trust it). Regarding the build targets, this is the original state of Manibuilder as it was used to build-test `flashrom-1.0`. Some fixes to the frame- work were applied, but fixups for the targets will be done in separate patches to maintain their original state for reference. Change-Id: I60863a5c7d70dde71486fccb66cb59b30ba4d982 Signed-off-by: Nico Huber <nico.h@gmx.de> Reviewed-on: https://review.coreboot.org/c/flashrom/+/23005 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Angel Pons <th3fanbus@gmail.com>
This commit is contained in:
33
util/manibuilder/Dockerfile.ubuntu-debootstrap
Normal file
33
util/manibuilder/Dockerfile.ubuntu-debootstrap
Normal file
@ -0,0 +1,33 @@
|
||||
FROM manibase
|
||||
|
||||
RUN \
|
||||
useradd -p locked -m mani && \
|
||||
if grep -q main /etc/apt/sources.list; then \
|
||||
if ! grep -q universe /etc/apt/sources.list; then \
|
||||
sed -i -e 's/ main$/ main universe/' \
|
||||
/etc/apt/sources.list || exit 1; \
|
||||
fi; \
|
||||
else \
|
||||
url="http://ports.ubuntu.com/" && \
|
||||
cn="$(sed -ne's/DISTRIB_CODENAME=//p' /etc/lsb-release)" && \
|
||||
for t in "" "-updates" "-security"; do \
|
||||
echo "deb ${url} ${cn}${t} main universe" \
|
||||
>>/etc/apt/sources.list || exit 1; \
|
||||
done; \
|
||||
fi && \
|
||||
apt-get -qq update && \
|
||||
apt-get -qq upgrade && \
|
||||
apt-get -qq dist-upgrade && \
|
||||
apt-get -qqy install gcc make git doxygen ccache \
|
||||
libpci-dev libusb-dev libftdi-dev libusb-1.0-0-dev && \
|
||||
apt-get clean
|
||||
|
||||
USER mani
|
||||
RUN \
|
||||
cd && \
|
||||
mkdir .ccache && chown mani:mani .ccache && \
|
||||
git clone https://review.coreboot.org/flashrom.git
|
||||
|
||||
ENV DEVSHELL /bin/bash
|
||||
COPY mani-wrapper.sh /home/mani/
|
||||
ENTRYPOINT ["/bin/sh", "/home/mani/mani-wrapper.sh"]
|
Reference in New Issue
Block a user