From d0d8c0977cfe442f999a3f8a1d5740491000d1e9 Mon Sep 17 00:00:00 2001 From: Andrew Turner Date: Thu, 2 Jan 2020 11:02:09 +0000 Subject: [PATCH] Add the missing trailing '/' when setting TARGET_ARCH from TARGET This should fix the build when setting TARGET but not TARGET_ARCH. Sponsored by: DARPA, AFRL --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 840e3c5ce45a..277235193e90 100644 --- a/Makefile +++ b/Makefile @@ -276,7 +276,7 @@ MK_META_MODE= no # exceptions. .if !defined(TARGET_ARCH) && defined(TARGET) # T->TA mapping is usually TARGET with arm64 the odd man out -_TARGET_ARCH= ${TARGET:S/arm64/aarch64/:S/riscv/riscv64/:S/arm/armv7} +_TARGET_ARCH= ${TARGET:S/arm64/aarch64/:S/riscv/riscv64/:S/arm/armv7/} .elif !defined(TARGET) && defined(TARGET_ARCH) && \ ${TARGET_ARCH} != ${MACHINE_ARCH} # TA->T mapping is accidentally CPUARCH with aarch64 the odd man out