3
# Do post-image-building tasks for arm+ac100, to make vfat images bootable;
4
# this script encapsulates the VFAT image in a PC partition image, with
5
# unpartitioned data holding boot data; this is very board specific and targets
6
# the Marvell Dove reference boards (e.g. Y0/Y1) but might work on other Dove
10
# $2 is the temporary CD build dir
11
# $3 is the image file
13
# Copyright (c) 2009 Canonical
14
# Authors: Oliver Grawert <ogra@canonical.com>
17
. "$BASEDIR/tools/boot/$DI_CODENAME/common.sh"
34
# Only disk 1* bootable
35
if ([ "$N" != 1 ] && [ "$N" != 1_NONUS ]) || [ "$CDIMAGE_ADDON" ]; then
39
if [ "$IMAGE_FORMAT" = "iso" ]; then
45
if [ "$CDIMAGE_PREINSTALLED" != 1 ]; then
49
BOOTIMG_IN=$LIVEIMAGES/$FULLARCH.bootimg-$SUBARCH
50
BOOTIMG_OUT=$(echo $IMAGENAME|sed 's/.raw/.bootimg/')
52
log "Moving .bootimg file to ${BOOTIMG_OUT}"
53
mv "$BOOTIMG_IN" "$BOOTIMG_OUT"