2012-09-24 22:42:58 +02:00
|
|
|
#!/bin/sh
|
|
|
|
# post-build fixups
|
2013-09-25 21:07:50 +02:00
|
|
|
# for further details, see
|
|
|
|
#
|
|
|
|
# http://boundarydevices.com/u-boot-on-i-mx6/
|
|
|
|
#
|
2012-09-24 22:42:58 +02:00
|
|
|
|
|
|
|
BOARD_DIR="$(dirname $0)"
|
|
|
|
|
|
|
|
# bd u-boot looks for bootscript here
|
2017-07-05 13:14:26 +02:00
|
|
|
$HOST_DIR/bin/mkimage -A arm -O linux -T script -C none -a 0 -e 0 \
|
2015-05-26 10:19:40 +02:00
|
|
|
-n "boot script" -d $BOARD_DIR/6x_bootscript.txt $TARGET_DIR/6x_bootscript
|
2012-09-24 22:42:58 +02:00
|
|
|
|
|
|
|
# u-boot / update script for bd upgradeu command
|
2013-09-26 21:15:59 +02:00
|
|
|
if [ -e $BINARIES_DIR/u-boot.imx ];
|
2012-09-24 22:42:58 +02:00
|
|
|
then
|
2014-11-21 17:19:06 +01:00
|
|
|
install -D -m 0644 $BINARIES_DIR/u-boot.imx $TARGET_DIR/u-boot.imx
|
2017-07-05 13:14:26 +02:00
|
|
|
$HOST_DIR/bin/mkimage -A arm -O linux -T script -C none -a 0 -e 0 \
|
2015-05-26 10:19:40 +02:00
|
|
|
-n "upgrade script" -d $BOARD_DIR/6x_upgrade.txt $TARGET_DIR/6x_upgrade
|
2012-09-24 22:42:58 +02:00
|
|
|
fi
|