mkuboot.sh 377 B

12345678910111213141516171819
  1. #!/bin/bash
  2. #
  3. # Build U-Boot image when `mkimage' tool is available.
  4. #
  5. MKIMAGE=$(type -path ${CROSS_COMPILE}mkimage)
  6. if [ -z "${MKIMAGE}" ]; then
  7. MKIMAGE=$(type -path mkimage)
  8. if [ -z "${MKIMAGE}" ]; then
  9. # Doesn't exist
  10. echo '"mkimage" command not found - U-Boot images will not be built' >&2
  11. exit 0;
  12. fi
  13. fi
  14. # Call "mkimage" to create U-Boot image
  15. ${MKIMAGE} "$@"