post-image.sh 496 B

123456789101112131415
  1. #!/bin/sh
  2. # By default U-Boot loads DTB from a file named "system.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 -nr \
  6. -e 's|^BR2_LINUX_KERNEL_INTREE_DTS_NAME="(xilinx/)?([-_/[:alnum:]\\.]*).*"$|\2|p' \
  7. "${BR2_CONFIG}")
  8. [ -z "${FIRST_DT}" ] || ln -fs "${FIRST_DT}.dtb" "${BINARIES_DIR}/system.dtb"
  9. BOARD_DIR="$(dirname "$0")"
  10. support/scripts/genimage.sh -c "${BOARD_DIR}/genimage.cfg"