2016-02-23 05:44:00 +03:00
|
|
|
ARCHES ?= armv7hf aarch64 ppc64le # x86_64
|
|
|
|
all: $(ARCHES)
|
2016-02-18 20:41:08 +03:00
|
|
|
|
2016-02-23 05:44:00 +03:00
|
|
|
Dockerfile.%: Dockerfile.%.hdr Dockerfile.tmpl
|
|
|
|
cat $^ > $@
|
2016-02-18 20:41:08 +03:00
|
|
|
|
2016-02-15 15:26:59 +03:00
|
|
|
qemu-user-static:
|
|
|
|
./extract-deb-pkg qemu-user-static
|
|
|
|
|
2016-02-24 12:29:57 -08:00
|
|
|
binfmt_misc:
|
2016-02-18 20:41:06 +03:00
|
|
|
./binfmt_misc
|
2016-02-24 12:29:57 -08:00
|
|
|
.PHONY: binfmt_misc
|
2016-02-15 15:26:59 +03:00
|
|
|
|
2016-07-08 02:18:53 +03:00
|
|
|
alpine:
|
|
|
|
docker build -t criu-$@ -f Dockerfile.alpine ../..
|
|
|
|
|
2016-02-23 05:44:00 +03:00
|
|
|
%: Dockerfile.% qemu-user-static binfmt_misc
|
|
|
|
docker build -t criu-$@ -f $< ../..
|
2016-02-15 15:26:59 +03:00
|
|
|
|
|
|
|
clean:
|
2016-02-23 05:44:00 +03:00
|
|
|
rm -rf qemu-user-static
|
|
|
|
for ARCH in $(ARCHES); do \
|
|
|
|
FILE=/proc/sys/fs/binfmt_misc/$$ARCH; \
|
|
|
|
test -f $$FILE && echo -1 > $$FILE; \
|
|
|
|
rm -f Dockerfile.$$ARCH; \
|
|
|
|
done
|