manibuilder/anita: Enable KVM when running on x86_64
This requires us to use privileged containers. Although, the QEMU
inside should still provide enough encapsulation, we might want to
disable this in automated environments.
Change-Id: I767287649511b46cd25125bcbceea8a0446fc76b
Signed-off-by: Nico Huber <nico.h@gmx.de>
Reviewed-on: https://review.coreboot.org/c/flashrom-stable/+/70914
Reviewed-by: Angel Pons <th3fanbus@gmail.com>
Tested-by: Nico Huber <nico.h@gmx.de>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
diff --git a/util/manibuilder/Makefile b/util/manibuilder/Makefile
index 294bc28..60332c0 100644
--- a/util/manibuilder/Makefile
+++ b/util/manibuilder/Makefile
@@ -57,6 +57,7 @@
$(QUIET_TEST)docker rm -f mani_$(call ident,$*) >/dev/null 2>&1 || true
$(QUIET_TEST)\
docker run \
+ $(MANI_DOCKER_ARGS) \
--env IDENT=$(call ident,$*) \
--volume manicache:/home/mani/.ccache \
--network=manibuilder \
@@ -75,6 +76,7 @@
if [ $$(docker ps -a -q -f name=mani_$(call ident,$*)) ]; then \
docker commit mani_$(call ident,$*) mani_run/$* && \
docker run --rm -it \
+ $(MANI_DOCKER_ARGS) \
--env IDENT=$(call ident,$*) \
--volume manicache:/home/mani/.ccache \
--network=manibuilder \
@@ -84,6 +86,7 @@
docker image rm mani_run/$*; \
else \
docker run --rm -it \
+ $(MANI_DOCKER_ARGS) \
--env IDENT=$(call ident,$*) \
--volume manicache:/home/mani/.ccache \
--network=manibuilder \