post-image.sh 460 B

123456789101112131415161718192021
  1. #!/usr/bin/env bash
  2. GENIMAGE_CFG="$(dirname $0)/genimage.cfg"
  3. GENIMAGE_TMP="${BUILD_DIR}/genimage.tmp"
  4. # copy the uEnv.txt to the output/images directory
  5. cp board/toradex/apalis-imx6/uEnv.txt $BINARIES_DIR/uEnv.txt
  6. rm -rf "${GENIMAGE_TMP}"
  7. # generate rootfs.img
  8. genimage \
  9. --rootpath "${TARGET_DIR}" \
  10. --tmppath "${GENIMAGE_TMP}" \
  11. --inputpath "${BINARIES_DIR}" \
  12. --outputpath "${BINARIES_DIR}" \
  13. --config "${GENIMAGE_CFG}"
  14. RET=${?}
  15. exit ${RET}