xref: /OK3568_Linux_fs/buildroot/board/zynq/post-image.sh (revision 4882a59341e53eb6f0b4789bf948001014eff981)
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