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
|
|
|
|
|
|
|
TARGET_DIR=$1
|
|
|
|
IMAGES_DIR=$1/../images
|
|
|
|
BOARD_DIR="$(dirname $0)"
|
|
|
|
|
|
|
|
# bd u-boot looks for bootscript here
|
2013-09-25 21:07:50 +02:00
|
|
|
cp $BOARD_DIR/6x_bootscript $TARGET_DIR
|
2012-09-24 22:42:58 +02:00
|
|
|
|
|
|
|
# u-boot / update script for bd upgradeu command
|
2013-09-25 21:07:50 +02:00
|
|
|
if [ -e $IMAGES_DIR/u-boot.imx ];
|
2012-09-24 22:42:58 +02:00
|
|
|
then
|
2013-09-25 21:07:50 +02:00
|
|
|
cp $IMAGES_DIR/u-boot.imx $TARGET_DIR
|
|
|
|
cp $BOARD_DIR/6x_upgrade $TARGET_DIR
|
2012-09-24 22:42:58 +02:00
|
|
|
fi
|