mirror of https://github.com/thesofproject/sof.git
llext: automatically select LLEXT type
When using a clang Cadence toolchain to build SOF and LLEXT modules we need to select a different LLEXT type than when using a Zephyr gcc toolchain. Signed-off-by: Guennadi Liakhovetski <guennadi.liakhovetski@linux.intel.com>
This commit is contained in:
parent
013e210209
commit
799f8279f7
|
@ -0,0 +1 @@
|
||||||
|
CONFIG_LLEXT_TYPE_ELF_RELOCATABLE=y
|
|
@ -812,6 +812,12 @@ def build_platforms():
|
||||||
if args.debug:
|
if args.debug:
|
||||||
overlays.append(str(pathlib.Path(SOF_TOP, "app", "debug_overlay.conf")))
|
overlays.append(str(pathlib.Path(SOF_TOP, "app", "debug_overlay.conf")))
|
||||||
|
|
||||||
|
# The xt-cland Cadence toolchain currently cannot link shared
|
||||||
|
# libraries for Xtensa. Therefore when it's used we switch to
|
||||||
|
# building relocatable ELF objects.
|
||||||
|
if platf_build_environ.get("ZEPHYR_TOOLCHAIN_VARIANT") == 'xt-clang':
|
||||||
|
overlays.append(str(pathlib.Path(SOF_TOP, "app", "llext_relocatable.conf")))
|
||||||
|
|
||||||
if overlays:
|
if overlays:
|
||||||
overlays = ";".join(overlays)
|
overlays = ";".join(overlays)
|
||||||
build_cmd.append(f"-DOVERLAY_CONFIG={overlays}")
|
build_cmd.append(f"-DOVERLAY_CONFIG={overlays}")
|
||||||
|
|
Loading…
Reference in New Issue