mirror of
https://github.com/checkpoint-restore/criu.git
synced 2026-07-21 09:10:10 +00:00
Fedora Rawhide updated to a glibc using clone3(). clone3() is, however, not yet part of the seccomp filter. Unfortunately 'docker build' does not allow dropping seccomp but luckily 'podman build' does. This switches the Fedora Rawhide test to use Podman. Podman is part of GitHub Actions and no additional packages need to be installed. Signed-off-by: Adrian Reber <areber@redhat.com>
33 lines
1,020 B
Makefile
33 lines
1,020 B
Makefile
ARCHES := x86_64 fedora-asan fedora-rawhide centos7 armv7hf centos8
|
|
NON_CLANG := armv7-cross aarch64-cross ppc64-cross mips64el-cross
|
|
CREATE_DOCKERFILES := $(ARCHES) $(NON_CLANG)
|
|
TARGETS := $(ARCHES) alpine archlinux
|
|
TARGETS_CLANG := $(addsuffix $(TARGETS),-clang)
|
|
CONTAINER_RUNTIME := docker
|
|
CONTAINER_TARGETS := $(TARGETS) $(NON_CLANG)
|
|
|
|
all: $(CONTAINER_TARGETS) $(TARGETS_CLANG)
|
|
.PHONY: all
|
|
|
|
# A build for each architecture requires appropriate Dockerfile
|
|
define FILE_DEP
|
|
$(1): Dockerfile.$(1)
|
|
endef
|
|
$(foreach file,$(CREATE_DOCKERFILES),$(eval $(call FILE_DEP,$(file))))
|
|
|
|
Dockerfile.%: Dockerfile.%.hdr Dockerfile.%.tmpl
|
|
cat $^ > $@
|
|
|
|
$(CONTAINER_TARGETS):
|
|
$(CONTAINER_RUNTIME) build $(BUILD_OPTIONS) -t criu-$@ -f Dockerfile.$@ $(DB_CC) ../..
|
|
.PHONY: $(CONTAINER_TARGETS)
|
|
|
|
# Clang builds add some Docker build env
|
|
define CLANG_DEP
|
|
$(1)-clang: $(1)
|
|
endef
|
|
$(foreach t,$(TARGETS),$(eval $(call CLANG_DEP,$(t))))
|
|
|
|
%-clang: DB_CC=--build-arg CC=clang
|
|
s390x-clang: DB_CC=--build-arg CC=clang-3.8
|
|
.PHONY: $(TARGETS_CLANG)
|