Home
last modified time | relevance | path

Searched hist:"50 ce590549d64eee684c0c1239014746fcdc5237" (Results 1 – 1 of 1) sorted by relevance

/optee_os/ta/
H A Dta.mk50ce590549d64eee684c0c1239014746fcdc5237 Fri Jan 06 14:28:52 UTC 2017 Jerome Forissier <jerome.forissier@linaro.org> Fix build error when $(O) starts with ./

When a target starts with './', $@ does not. Therefore we must not use
$@ to access a variable if its name is created from $(out-dir) which
might start with './'. We use a macro to make sure that
$(conf-mk-file-export) is evaluated immediately rather than when the
rule is executed. It is needed because ta/ta.mk may be included twice
with different values for $(conf-mk-file-export) (32-bit and 64-bit
dev kits).

Fixes the following issue:

$ make O=./build
<snip>
GEN build/export-ta_arm32/mk/conf.mk
/bin/bash: -c: line 0: syntax error near unexpected token `)'
/bin/bash: -c: line 0: `() >> build/export-ta_arm32/mk/conf.mk'
ta/ta.mk:120: recipe for target 'build/export-ta_arm32/mk/conf.mk' failed
make: *** [build/export-ta_arm32/mk/conf.mk] Error 1

Signed-off-by: Jerome Forissier <jerome.forissier@linaro.org>
Reviewed-by: Etienne Carriere <etienne.carriere@linaro.org>