1#!/bin/sh 2 3# By default U-Boot loads DTB from a file named "devicetree.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 -n \ 8 's/^BR2_LINUX_KERNEL_INTREE_DTS_NAME="\([a-z0-9\-]*\).*"$/\1/p' \ 9 ${BR2_CONFIG}) 10 11[ -z "${FIRST_DT}" ] || ln -fs ${FIRST_DT}.dtb ${BINARIES_DIR}/devicetree.dtb 12 13support/scripts/genimage.sh -c board/zynq/genimage.cfg 14