mkuboot.sh 293 B

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