From 0ec95c86f37338f97ba1da68915e49191ff081bb Mon Sep 17 00:00:00 2001 From: idoleat Date: Wed, 3 Jan 2024 23:46:58 +0800 Subject: [PATCH] Refine Makefile on error handling for ARM32 architecture detection With the original Makefile, the host without "arch" in PATH gets "make: arch: No such file or directory" printed everytime while making, regardless which target is choosed. The "2>/dev/null" is added for suppressing the error message. --- mk/common.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mk/common.mk b/mk/common.mk index 77e6e1c1..e54382bc 100644 --- a/mk/common.mk +++ b/mk/common.mk @@ -5,7 +5,7 @@ else PRINTF = env printf endif -HOST_ARCH = $(shell arch) +HOST_ARCH = $(shell arch 2>/dev/null) # Control the build verbosity ifeq ("$(VERBOSE)","1")