Fix ccache behaviour if more than one ccache in PATH
authorPatrick Georgi <patrick.georgi@secunet.com>
Fri, 20 May 2011 22:14:07 +0000 (22:14 +0000)
committerPatrick Georgi <patrick.georgi@coresystems.de>
Fri, 20 May 2011 22:14:07 +0000 (22:14 +0000)
Signed-off-by: Patrick Georgi <patrick.georgi@secunet.com>
Acked-by: Stefan Reinauer <stefan.reinauer@coreboot.org>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@6602 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

Makefile

index ac7115da30ba763cd82a677f02724516815d753f..33e35738bb57b57ee4b73be9d519dd69a3569134 100644 (file)
--- 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