Patchwork [1/3] Fix ccache behaviour if more than one ccache in PATH

login
register
about
Submitter Patrick Georgi
Date 2011-05-20 11:54:34
Message ID <1305892703.2575.0.camel@linux-0a8x.site>
Download mbox | patch
Permalink /patch/2978/
State Accepted
Commit r6602
Headers show

Comments

Patrick Georgi - 2011-05-20 11:54:34
Signed-off-by: Patrick Georgi <patrick.georgi@secunet.com>
---
 Makefile |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
Stefan Reinauer - 2011-05-20 20:27:35
* Patrick Georgi <patrick.georgi@secunet.com> [110520 13:54]:
> 
> Signed-off-by: Patrick Georgi <patrick.georgi@secunet.com>
> ---
>  Makefile |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
> 

Acked-by: Stefan Reinauer <stefan.reinauer@coreboot.org>

Patch

diff --git a/Makefile b/Makefile
index ac7115d..33e3573 100644
--- a/Makefile
+++ b/Makefile
@@ -109,7 +109,7 @@  endif
 endif
 
 ifeq ($(CONFIG_CCACHE),y)
-CCACHE:=$(wildcard $(addsuffix /ccache,$(subst :, ,$(PATH))))
+CCACHE:=$(word 1,$(wildcard $(addsuffix /ccache,$(subst :, ,$(PATH)))))
 ifeq ($(CCACHE),)
 $(error ccache selected, but not found in PATH)
 endif