# FSBL partition aka TF-A BL2
part fsbl --source rawcopy --fstype=ext4 --fsoptions "noauto" --part-name=fsbl --sourceparams="file=${DEPLOY_DIR_IMAGE}/arm-trusted-firmware/tf-a-stm32mp157c-dhcor-custom-optee-sdcard.stm32" --ondisk mmcblk --part-type 0x8301 --fixed-size 256K --align 17

# Fip partition
part fip   --source rawcopy --fstype=ext4 --fsoptions "noauto" --part-name=fip --sourceparams="file=${DEPLOY_DIR_IMAGE}/fip/fip-stm32mp157c-dhcor-custom-optee-sdcard.bin" --ondisk mmcblk --part-type 19d5df83-11b0-457b-be2c-7559c13142a5 --fixed-size 4096K --uuid 4fd84c93-54ef-463f-a7ef-ae25ff887087

# U-BOOT env
part u-boot-env --source empty --part-name=uboot-env --ondisk mmcblk --part-type 0x8301 --fixed-size 512K

# Boot partition
part /boot --source bootimg-partition --ondisk mmcblk --fstype=ext4 --label boot --part-name "boot-sd" --align 4096 --size 64M --active

# Partition to encrypt
part / --ondisk mmcblk --label rootfs --part-name "rootfs-test" --align 4096 --use-uuid --size 128M

bootloader --ptable gpt
