2
1

post-build.sh 638 B

1234567891011121314151617181920
  1. #!/bin/sh
  2. # post-build fixups
  3. # for further details, see
  4. #
  5. # http://boundarydevices.com/u-boot-on-i-mx6/
  6. #
  7. BOARD_DIR="$(dirname $0)"
  8. # bd u-boot looks for bootscript here
  9. $HOST_DIR/usr/bin/mkimage -A arm -O linux -T script -C none -a 0 -e 0 \
  10. -n "boot script" -d $BOARD_DIR/6x_bootscript.txt $TARGET_DIR/6x_bootscript
  11. # u-boot / update script for bd upgradeu command
  12. if [ -e $BINARIES_DIR/u-boot.imx ];
  13. then
  14. install -D -m 0644 $BINARIES_DIR/u-boot.imx $TARGET_DIR/u-boot.imx
  15. $HOST_DIR/usr/bin/mkimage -A arm -O linux -T script -C none -a 0 -e 0 \
  16. -n "upgrade script" -d $BOARD_DIR/6x_upgrade.txt $TARGET_DIR/6x_upgrade
  17. fi