In this demo I have a simple makefile to generate and deploy u-boot using the metadata extracted from the XSA file. The script will do the following
Download Git sources
Generate the Platform (with FSBL)
Generate the device tree files
Compile device-tree
Compile ARM Trusted Firmware
Compile U-boot
Generate JTAG boot script
Each section above can be built independently. For example, if users want to make a change to the device-tree, then only the DT needs to be compiled and re-deployed on the board. This allows the users to speed up any u-boot debug or testing.