post-image.sh 664 B

12345678910111213141516171819202122
  1. #!/bin/sh
  2. BOARD_DIR="$(dirname $0)"
  3. GENIMAGE_CFG="${BOARD_DIR}/genimage.cfg"
  4. GENIMAGE_TMP="${BUILD_DIR}/genimage.tmp"
  5. rm -rf "${GENIMAGE_TMP}"
  6. # As we now use the Linux v4.5-RC1 kernel no orangepi-pc dtb exists yet.
  7. # However the orangepi-plus dtb has not much content, only mmc0 and uart
  8. # which are equal to the pc version of the board, so we use it here.
  9. mv ${BINARIES_DIR}/sun8i-h3-orangepi-plus.dtb ${BINARIES_DIR}/sun8i-h3-orangepi-pc.dtb
  10. genimage \
  11. --rootpath "${TARGET_DIR}" \
  12. --tmppath "${GENIMAGE_TMP}" \
  13. --inputpath "${BINARIES_DIR}" \
  14. --outputpath "${BINARIES_DIR}" \
  15. --config "${GENIMAGE_CFG}"
  16. exit $?