All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] trusted-firmware-a: fix build error when using ccache
@ 2024-09-28 15:54 Adrian DC
  2024-09-30 14:00 ` Jon Mason
  0 siblings, 1 reply; 8+ messages in thread
From: Adrian DC @ 2024-09-28 15:54 UTC (permalink / raw)
  To: meta-arm; +Cc: Javier Tia, Jon Mason, Adrian DC

From: Javier Tia <javier.tia@linaro.org>

When ccache is enabled trusted-firmware-a recipe fails with this
error message:

    make: *** No rule to make target 'aarch64-poky-linux-gcc'. Stop.

ccache prefix CC variable with 'ccache' word before compiler. Because
there are no quotes assigned to CC, only 'ccache' is assigned. The
compiler becomes a make target, producing the build error.

Add single quotes to LD is a good measure to prevent this kind of error.

Signed-off-by: Javier Tia <javier.tia@linaro.org>
Signed-off-by: Jon Mason <jon.mason@arm.com>
Signed-off-by: Adrian DC <radian.dc@gmail.com>
---
 .../recipes-bsp/trusted-firmware-a/trusted-firmware-a.inc     | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/meta-arm/recipes-bsp/trusted-firmware-a/trusted-firmware-a.inc b/meta-arm/recipes-bsp/trusted-firmware-a/trusted-firmware-a.inc
index 2e3b50c5..5d3da59b 100644
--- a/meta-arm/recipes-bsp/trusted-firmware-a/trusted-firmware-a.inc
+++ b/meta-arm/recipes-bsp/trusted-firmware-a/trusted-firmware-a.inc
@@ -101,9 +101,9 @@ def remove_options_tail (in_string):
     from itertools import takewhile
     return ' '.join(takewhile(lambda x: not x.startswith('-'), in_string.split(' ')))
 
-EXTRA_OEMAKE += "LD=${@remove_options_tail(d.getVar('LD'))}"
+EXTRA_OEMAKE += "LD='${@remove_options_tail(d.getVar('LD'))}'"
 
-EXTRA_OEMAKE += "CC=${@remove_options_tail(d.getVar('CC'))}"
+EXTRA_OEMAKE += "CC='${@remove_options_tail(d.getVar('CC'))}'"
 
 # Verbose builds, no -Werror
 EXTRA_OEMAKE += "V=1 E=0"
-- 
2.43.0



^ permalink raw reply related	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2024-10-06 10:07 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-09-28 15:54 [PATCH] trusted-firmware-a: fix build error when using ccache Adrian DC
2024-09-30 14:00 ` Jon Mason
2024-09-30 22:47   ` Javier Tia
2024-09-30 23:02     ` Jon Mason
2024-10-01  1:56       ` Adrian DC
2024-10-01 16:10         ` [meta-arm] " Denys Dmytriyenko
2024-10-02 13:07         ` Jon Mason
2024-10-06 10:07           ` Adrian DC

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.