summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorDaniil Baturin <daniil@vyos.io>2026-01-15 15:42:01 +0000
committerGitHub <noreply@github.com>2026-01-15 15:42:01 +0000
commitf43677194feecaeabdecdc53d0aec5de649c874b (patch)
treea5ce78b25412a691e9d6bb67622817217a8ce194 /Makefile
parent02a787d1eb19b51403f9936808fa13d230aa62aa (diff)
parentd557ef0a6967a94e45243db6e7dbf0ad27add4bf (diff)
downloadvyos-build-f43677194feecaeabdecdc53d0aec5de649c874b.tar.gz
vyos-build-f43677194feecaeabdecdc53d0aec5de649c874b.zip
Merge pull request #1092 from sever-sever/T8065-v2
T8065: Dehardcode qemu settings to allow run tests on arch arm64
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile7
1 files changed, 4 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index b49310ba..da82e378 100644
--- a/Makefile
+++ b/Makefile
@@ -1,5 +1,6 @@
SHELL := /bin/bash
+arch ?= $(shell dpkg --print-architecture 2>/dev/null || echo amd64)
build_dir := build
.PHONY: all
@@ -13,8 +14,8 @@ all:
.PHONY: checkiso
.ONESHELL:
checkiso:
- if [ ! -f build/live-image-amd64.hybrid.iso ]; then
- echo "Could not find build/live-image-amd64.hybrid.iso"
+ if [ ! -f build/live-image-$(arch).hybrid.iso ]; then
+ echo "Could not find build/live-image-$(arch).hybrid.iso"
exit 1
fi
@@ -31,7 +32,7 @@ test-no-interfaces: checkiso
.PHONY: test-no-interfaces-no-vpp
.ONESHELL:
test-no-interfaces-no-vpp: checkiso
- scripts/check-qemu-install --debug --configd --smoketest --uefi --no-interfaces --no-vpp --iso build/live-image-amd64.hybrid.iso
+ scripts/check-qemu-install --debug --configd --smoketest --uefi --no-interfaces --no-vpp --arch $(arch) --iso build/live-image-$(arch).hybrid.iso
.PHONY: test-interfaces
.ONESHELL: