aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorManorit Chawdhry <m-chawdhry@ti.com>2024-12-10 14:46:45 +0530
committerTom Rini <trini@konsulko.com>2024-12-19 12:18:57 -0600
commitc06705a9a13d58e799b98927c360e93954b62860 (patch)
treef86b61f4125d55c523c4761f40c87e14b4417d85
parent0b7f4c7cf3270103a9aa8ffe2c2fb43d09b4ced5 (diff)
downloadu-boot-WIP/19Dec2024.tar.gz
Makefile: Match the full path to ccache for filteringWIP/19Dec2024
One can use ccache by keeping ccache in PATH or by providing the full path to ccache as well. Providing the full path to ccache fails as the current regex tries to look for ccache being the initial token during filtering. Do a greedy search to remove anything before ccache for regex matching. Fixes: 04b1d84221d5 ("Makefile: fix empty MK_ARCH when using ccache") Signed-off-by: Manorit Chawdhry <m-chawdhry@ti.com>
-rw-r--r--Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 2e49f6088cc..70ed4983aa4 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/^\(ccache\)\{0,1\}[[:space:]]*\([^\/]*\/\)*\([^-]*\)-[^[:space:]]*/\3/p'}"
+ MK_ARCH="${shell echo $(CROSS_COMPILE) | sed -n 's/^\(.*ccache\)\{0,1\}[[:space:]]*\([^\/]*\/\)*\([^-]*\)-[^[:space:]]*/\3/p'}"
endif
unexport HOST_ARCH
ifeq ("x86_64", $(MK_ARCH))