2025-04-01 5:32 AM - edited 2025-04-01 5:32 AM
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!
Thanks for the pointers!
2025-04-10 4:11 PM - edited 2025-04-10 4:38 PM
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.
2025-04-15 2:53 AM - edited 2025-04-15 2:53 AM
Thanks for your input, I will give it a try! But what if I really want "opteemin"?
2025-04-15 4:26 PM
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.