Skip to content
Snippets Groups Projects
Commit 04b1d842 authored by Quentin Schulz's avatar Quentin Schulz Committed by Tom Rini
Browse files

Makefile: fix empty MK_ARCH when using ccache


One can use ccache by prefixing the typical CROSS_COMPILE value with
"ccache " (e.g. "ccache aarch64-gnu-linux-" for Aarch64). This however
makes the MK_ARCH empty because sed won't find a match anymore since it
expects the CROSS_COMPILE value to start with the actual toolchain (with
an unlimited number of white spaces before).

This is failing builds since commit 7506c156 ("sandbox: Report host
default-filename in native mode").

Add "ccache" prefix to ignore but participate in the matching regex used
by sed to identify the target architecture.

Signed-off-by: default avatarQuentin Schulz <quentin.schulz@cherry.de>
parent 2b14d120
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment