From: Thomas Perrot Date: Thu, 3 Feb 2022 08:54:43 +0000 (+0100) Subject: imx-atf: add mark quotation to prevent build issue with ccache X-Git-Url: https://code.ossystems.io/gitweb?a=commitdiff_plain;h=refs%2Fpull%2F973%2Fhead;p=meta-freescale.git imx-atf: add mark quotation to prevent build issue with ccache Otherwise, when ccache is enable the following issue occurs: Log data follows: | DEBUG: Executing shell function do_compile | NOTE: make -j 8 CROSS_COMPILE=aarch64-oe-linux- PLAT=imx8qx LD=aarch64-oe-linux-ld CC=ccache aarch64-oe-linux-gcc bl31 | make: *** No rule to make target 'aarch64-oe-linux-gcc'. Stop. | ERROR: oe_runmake failed | WARNING: exit code 1 from a shell command. Signed-off-by: Thomas Perrot --- diff --git a/recipes-bsp/imx-atf/imx-atf_2.4.bb b/recipes-bsp/imx-atf/imx-atf_2.4.bb index afb31698..eedcdc54 100644 --- a/recipes-bsp/imx-atf/imx-atf_2.4.bb +++ b/recipes-bsp/imx-atf/imx-atf_2.4.bb @@ -43,9 +43,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'))}"' do_compile() { # Clear LDFLAGS to avoid the option -Wl recognize issue