Ian Fijolek
f8e8e46d97
All checks were successful
continuous-integration/drone/push Build is passing
34 lines
607 B
Makefile
34 lines
607 B
Makefile
DOCKER_TAG ?= multiarch-test-${USER}
|
|
|
|
.PHONY: default
|
|
default: test
|
|
|
|
.PHONY:test
|
|
test:
|
|
@echo ok
|
|
|
|
.PHONY: build
|
|
build: build/qemu-x86_64-static
|
|
docker build . -t ${DOCKER_TAG}
|
|
|
|
build/qemu-arm-static:
|
|
./get_qemu2.sh arm
|
|
|
|
build/qemu-x86_64-static:
|
|
./get_qemu2.sh x86_64
|
|
|
|
build/qemu-aarch64-static:
|
|
./get_qemu2.sh aarch64
|
|
|
|
.PHONY: cross-build-arm
|
|
cross-build-arm: build/qemu-arm-static
|
|
docker build --build-arg REPO=arm32v6 --build-arg ARCH=arm . -t ${DOCKER_TAG}-arm32v6
|
|
|
|
.PHONY: run
|
|
run: build
|
|
docker run ${DOCKER_TAG}
|
|
|
|
.PHONY: run
|
|
cross-run-arm: cross-build-arm
|
|
docker run --rm ${DOCKER_TAG}-arm32v6
|