Skip to content

Commit

Permalink
Merge pull request #2205 from lrusak/bootloader-fix
Browse files Browse the repository at this point in the history
scripts/image: restore old functionality
  • Loading branch information
MilhouseVH committed Nov 11, 2017
2 parents 827e8c9 + 50c0a1d commit 037c9ff
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion scripts/image
Original file line number Diff line number Diff line change
Expand Up @@ -268,13 +268,23 @@ if [ "$1" = "release" -o "$1" = "mkimage" -o "$1" = "amlpkg" -o "$1" = "noobs" ]
# remove n previous created release image
rm -rf $TARGET_IMG/$IMAGE_NAME.img.gz

if [ "$BOOTLOADER" = "u-boot" ]; then
if [ -n "$BOOTLOADER" ]; then

BOOTLOADER_DIR="$(get_pkg_directory "$BOOTLOADER")"

if [ -d $BOOTLOADER_DIR/files ]; then
cp -R $BOOTLOADER_DIR/files/* $RELEASE_DIR
fi

if [ -f $PROJECT_DIR/$PROJECT/devices/$DEVICE/bootloader/release ]; then
echo "Running $PROJECT_DIR/$PROJECT/devices/$DEVICE/bootloader/release"
. $PROJECT_DIR/$PROJECT/devices/$DEVICE/bootloader/release
elif [ -f $PROJECT_DIR/$PROJECT/bootloader/release ]; then
echo "Running $PROJECT_DIR/$PROJECT/bootloader/release"
. $PROJECT_DIR/$PROJECT/bootloader/release
elif [ -f $BOOTLOADER_DIR/release ]; then
echo "Running $BOOTLOADER_DIR/release"
. $BOOTLOADER_DIR/release
fi
fi

Expand Down

0 comments on commit 037c9ff

Please sign in to comment.