post-image.sh 461 B

123456789101112131415
  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}/system.dtb
  9. BOARD_DIR="$(dirname $0)"
  10. support/scripts/genimage.sh -c $BOARD_DIR/genimage.cfg