aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@openbsd.org>2022-05-05 16:42:23 +0200
committerHeinrich Schuchardt <heinrich.schuchardt@canonical.com>2022-05-07 23:17:25 +0200
commit1a16e66e6543dbe8a78f7762b3bb13444eab8ab2 (patch)
treed1d1ee99feec4f8e685283aa9bfaf8e5e608aa13 /Makefile
parent145921bdbdcfc24f18ce21d570ff86cc7e1fa3ba (diff)
downloadu-boot-1a16e66e6543dbe8a78f7762b3bb13444eab8ab2.zip
u-boot-1a16e66e6543dbe8a78f7762b3bb13444eab8ab2.tar.gz
u-boot-1a16e66e6543dbe8a78f7762b3bb13444eab8ab2.tar.bz2
Makefile: Avoid non-portable GNU sed extension
Use [:space:] instead of \s and \S in regular expression that determines the sandbox target architecture. Fixes the build failure on OpenBSD introduced with commit 4e65ca00f3a3 ("efi_loader: bootmgr: add booting from removable media"). Fixes: f7691a6d736b ("sandbox: allow cross-compiling sandbox") Signed-off-by: Mark Kettenis <kettenis@openbsd.org> Reviewed-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index ea80f00..6eceeb3 100644
--- a/Makefile
+++ b/Makefile
@@ -21,7 +21,7 @@ include include/host_arch.h
ifeq ("", "$(CROSS_COMPILE)")
MK_ARCH="${shell uname -m}"
else
- MK_ARCH="${shell echo $(CROSS_COMPILE) | sed -n 's/^\s*\([^\/]*\/\)*\([^-]*\)-\S*/\2/p'}"
+ MK_ARCH="${shell echo $(CROSS_COMPILE) | sed -n 's/^[[:space:]]*\([^\/]*\/\)*\([^-]*\)-[^[:space:]]*/\2/p'}"
endif
unexport HOST_ARCH
ifeq ("x86_64", $(MK_ARCH))