cancel
Showing results for 
Search instead for 
Did you mean: 

export-user_ta is missing in yocto SDK

Morandg
Associate II

Hi ST community!

I am porting our Yocto bsp to the latest st scarthgap (openstlinux-6.6-yocto-scarthgap-mpu-v25.03.19) for our custom modules based on a stm32mp157c. When I source the Yocto SDK, the error is shown:

 

[SDK ERROR] Issue to optee export-user_ta directory

 

My main issue is that I cannot recompile optee (4.0.0-stm32mp-r1.2) outside of yocto:

 

make PLATFORM=stm32mp1 CFG_EMBED_DTB_SOURCE_FILE=<our-devkit>.dts CFG_TEE_CORE_LOG_LEVEL=2 O=build all
...
arm-poky-linux-gnueabi-ld.bfd: cannot find libgcc.a: No such file or directory

 

I have tried to pass the sysroot on the command line (CFLAGS, LDFLAGS, ...) but nothing worked!

  • What is missing during the SDK build?
  • Is there a way to fix this temporarly on the command line?

Thanks for the pointers!

3 REPLIES 3
jpcarlos
Associate

I got this one fixed after changing the appended value to BOOTSCHEME_LABELS from "opteemin" to "optee". You will find this line in the machine configuration file of your custom board ( meta-st/meta-st-stm32mp-addons/conf/machine/).

After updating this don't forget to regenerate and re-install the SDK.

 

Thanks for your input, I will give it a try! But what if I really want "opteemin"?

jpcarlos
Associate

That's something I have not tried yet but if you look at the machine configuration file stmm32mp1.conf (meta-st/meta-st-stm32mp/conf/machine) BOOTSCHEME_LABELS is set to optee + opteemin + fastboot-opteemin + fastboot. I'm assuming for now we just have to always include optee for some reason.