From 7cb30d37226014281d4df2a048bac57c7cb25e70 Mon Sep 17 00:00:00 2001 From: Renato Botelho do Couto Date: Thu, 2 Jan 2025 17:54:15 +0000 Subject: [PATCH] build: Fix PATH shell export When $(wildcard /usr/lib*/ccache) returns more than one directory, they are separated by space and it ends up setting only first one to PATH variable while the rest of the string is just throwed to bash and it ends up breaking the build. This change replaces space by colon to keep desired PATH string syntax. Type: fix Change-Id: I94ba3465a46fa3c4fbb50c9668f0afd97e8c4f91 Signed-off-by: Renato Botelho do Couto --- build-root/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build-root/Makefile b/build-root/Makefile index df4434d7629..b62a671d58f 100644 --- a/build-root/Makefile +++ b/build-root/Makefile @@ -317,7 +317,7 @@ endif BUILD_ENV = \ export CCACHE_DIR=$(CCACHE_DIR) ; \ - export PATH=$(wildcard /usr/lib*/ccache):$(TOOL_INSTALL_DIR)/bin:$${PATH} ; \ + export PATH=$$(echo $(wildcard /usr/lib*/ccache) | tr ' ' ':'):$(TOOL_INSTALL_DIR)/bin:$${PATH} ; \ $(if $(call configure_var_fn,PATH), export PATH=$${PATH}:$(call configure_var_fn,PATH);,) \ export PATH="`echo $${PATH} | sed -e s/[.]://`" ; \ $(if $(not_native),export CONFIG_SITE=$(MU_BUILD_ROOT_DIR)/config.site ;,) \ -- 2.16.6