Hi,
I work with it a few days ago with stm32mp1-openstlinux-5.15-yocto-kirkstone-mp1-v22.11.23 (zip file with kernel, FSBL, u-boot downloaded from ST)
1) Build standard configuration.
# my location of compiler
source /opt/st/OpenSTLinux/openstlinux-5.15-yocto-kirkstone-mp1-v22.11.23/environment-setup-cortexa7t2hf-neon-vfpv4-ostl-linux-gnueabi
cd u-boot-stm32mp-v2021.10-stm32mp-r2-r0/u-boot-stm32mp-v2021.10-stm32mp-r2
export FIP_DEPLOYDIR_ROOT=$PWD/../../FIP_artifacts
make -f $PWD/../Makefile.sdk UBOOT_CONFIG=trusted UBOOT_DEFCONFIG=stm32mp15_defconfig UBOOT_BINARY=u-boot.dtb DEVICETREE=stm32mp157c-dk2 all -j12
In directory build/stm32mp15_defconfig is .config file
2) copy it to main boot directory (../../u-boot-stm32mp-v2021.10-stm32mp-r2)
run
make menuconfig
modify configuration, write it.
3) copy .config to ../u-boot-stm32mp-v2021.10-stm32mp-r2/configs as yourconfiguration_defconfig
end of name _defconfig is important!
after that clean system with
make mrproper
and build your configuration with
make -f $PWD/../Makefile.sdk UBOOT_CONFIG=trusted UBOOT_DEFCONFIG=yourconfiguration_defconfig UBOOT_BINARY=u-boot.dtb DEVICETREE=stm32mp157c-dk2 all -j12
Michal Jahelka