1#!/bin/sh 2 3# By default U-Boot loads DTB from a file named "system.dtb", so 4# let's use a symlink with that name that points to the *first* 5# devicetree listed in the config. 6 7FIRST_DT=$(sed -nr \ 8 -e 's|^BR2_LINUX_KERNEL_INTREE_DTS_NAME="xilinx/([-_/[:alnum:]\\.]*).*"$|\1|p' \ 9 ${BR2_CONFIG}) 10 11[ -z "${FIRST_DT}" ] || ln -fs ${FIRST_DT}.dtb ${BINARIES_DIR}/system.dtb 12 13support/scripts/genimage.sh -c board/zynqmp/genimage.cfg 14