silences which complaining if no arch

This commit is contained in:
2026-06-30 08:51:23 +01:00
parent 4225f3c8da
commit 0e9f8e2dd6
+1 -1
View File
@@ -4,7 +4,7 @@ include config.mk
# VARIABLES # # VARIABLES #
############# #############
CPU_ARCH := $(if $(shell which arch),\ CPU_ARCH := $(if $(shell which arch 2>/dev/null),\
$(shell arch),\ $(shell arch),\
$(shell lscpu | grep ^Architecture: | sed "s/^Architecture:[[:space:]]*\([[:alnum:][:punct:]]\+\).*/\1/")) $(shell lscpu | grep ^Architecture: | sed "s/^Architecture:[[:space:]]*\([[:alnum:][:punct:]]\+\).*/\1/"))
IMAGE_PREFIX := $(if $(filter armv7%,$(CPU_ARCH)),armv7/) IMAGE_PREFIX := $(if $(filter armv7%,$(CPU_ARCH)),armv7/)