From d557ef0a6967a94e45243db6e7dbf0ad27add4bf Mon Sep 17 00:00:00 2001 From: Viacheslav Hletenko Date: Wed, 31 Dec 2025 11:14:06 +0000 Subject: T8065: Dehardcode qemu settings to allow run tests on arch arm64 --- Makefile | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'Makefile') 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: -- cgit v1.2.3