mkuboot.sh 379 B

1234567891011121314151617181920
  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 1;
  12. fi
  13. fi
  14. # Call "mkimage" to create U-Boot image
  15. ${MKIMAGE} "$@"