From 70a155a0a763b52417d827baa3dbe1dc88bab975 Mon Sep 17 00:00:00 2001 From: Joe Carstairs Date: Mon, 29 Jun 2026 09:28:53 +0100 Subject: [PATCH] Makefile: CPU_ARCH can use arch instead of lscpu to find CPU architecture --- Makefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 947cd8e..7fdc364 100644 --- a/Makefile +++ b/Makefile @@ -4,7 +4,9 @@ include config.mk # VARIABLES # ############# -CPU_ARCH := $(shell lscpu | grep ^Architecture: | sed "s/^Architecture:[[:space:]]*\([[:alnum:][:punct:]]\+\).*/\1/") +CPU_ARCH := $(if $(shell which arch),\ + $(shell arch),\ + $(shell lscpu | grep ^Architecture: | sed "s/^Architecture:[[:space:]]*\([[:alnum:][:punct:]]\+\).*/\1/")) IMAGE_PREFIX := $(if $(filter armv7%,$(CPU_ARCH)),armv7/) REGISTRY_DOMAIN := git.joeac.net REGISTRY_USER := joeac