3
# boot-mipsel - (C) 2002 by Karsten Merker <merker@debian.org>
5
# You may copy, modify and distribute this under the terms of the GNU
6
# General Public License as published by the Free Software Foundation;
7
# either version 2 of the License, or (at your option) any later version.
9
# Using this script on any architecture other than mipsel requires
10
# having binutils-multiarch installed, as it uses objcopy (a part
11
# of binutils) which is platform dependent. The binutils-multiarch
12
# package contains an objcopy which is capable of dealing with other
13
# arches' binary formats.
16
# $2 is the temporary CD build dir
18
. $BASEDIR/tools/boot/$CODENAME/common.sh
23
# Strip NONUS part of disk number
24
# NN will be 1...N so it can be used as an index
26
NN=`echo $N | sed -e 's/_NONUS//'`
41
# Only disks 1 and 2 bootable
42
if [ $NN != 1 -a $NN != 2 ]; then
46
install_languages $CDROOT
48
mkdir -p $CDROOT/cdboot
50
objcopy -O binary CD1/dists/$CODENAME/main/disks-$ARCH/current/tftpimage-${KTYPE[$NN]} $CDROOT/cdboot/tftpimage-${KTYPE[$NN]}.raw