mirror of
https://git.yoctoproject.org/meta-arm
synced 2026-06-06 02:40:18 +00:00
trusted-firmware-a: enable clang support
The CC and LD parameters are used to point make to the currently used compiler and linkers. This change enables TFA to be compiled successfully when TOOLCHAIN=clang. Change-Id: Ice465318b8c9b2b69c08fe4f48f6d36c610978f0 Signed-off-by: Brett Warren <brett.warren@arm.com> Signed-off-by: Jon Mason <jon.mason@arm.com>
This commit is contained in:
@@ -78,6 +78,17 @@ do_configure[noexec] = "1"
|
||||
DEPENDS_append = " dtc-native openssl-native"
|
||||
DEPENDS_append_aarch64_qemuall ?= " optee-os"
|
||||
|
||||
# CC and LD introduce arguments which conflict with those otherwise provided by
|
||||
# this recipe. The heads of these variables excluding those arguments
|
||||
# are therefore used instead.
|
||||
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 += "CC=${@remove_options_tail(d.getVar('CC'))}"
|
||||
|
||||
EXTRA_OEMAKE += "V=1"
|
||||
|
||||
# Add platform parameter
|
||||
|
||||
Reference in New Issue
Block a user