summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorJoe Carstairs <me@joeac.net>2026-06-30 08:51:23 +0100
committerJoe Carstairs <me@joeac.net>2026-06-30 08:51:23 +0100
commit0e9f8e2dd6ee757984e6b185c9fd0daae3d3a553 (patch)
tree14908c90a46c7070d1f868e2b572fc006564861a /Makefile
parent4225f3c8da03c36cb988c56ebe7fd6bc1d88b8fe (diff)
silences which complaining if no arch
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index d4cbb5b..0de2cae 100644
--- a/Makefile
+++ b/Makefile
@@ -4,7 +4,7 @@ include config.mk
# VARIABLES #
#############
-CPU_ARCH := $(if $(shell which arch),\
+CPU_ARCH := $(if $(shell which arch 2>/dev/null),\
$(shell arch),\
$(shell lscpu | grep ^Architecture: | sed "s/^Architecture:[[:space:]]*\([[:alnum:][:punct:]]\+\).*/\1/"))
IMAGE_PREFIX := $(if $(filter armv7%,$(CPU_ARCH)),armv7/)