post-image.sh 438 B

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