Debian Codegraph @

tools/boot/bullseye/boot-mips-common

raw
1 # This script gets sourced from boot-mips, boot-mipsel and boot-mips64el
2 #
3 # $1 is the CD number
4 # $2 is the temporary CD build dir
5 #
6 # This is copied from the old arm script and it is currently disabled
7 # as there don't seem to be any CD-bootable mips* machines.
8
9 . $BASEDIR/tools/boot/$DI_CODENAME/common.sh
10
11 N=$1
12 CDDIR=$2
13 INSTALLDIR="install"
14
15 # Common options for all disks
16 add_mkisofs_opt $CDDIR/../$N.mkisofs_opts "-J -joliet-long"
17 add_mkisofs_opt $CDDIR/../$N.mkisofs_opts "-cache-inodes"
18 add_mkisofs_opt $CDDIR/../$N.mkisofs_opts "-l"
19
20 # Exit if this is not CD#1/DVD#1
21 if [ $N != "1" ]; then
22 exit 0
23 fi
24
25 if [ "$DI_WWW_HOME" = "default" ]; then
26 # Tempting as it might be to merge these definitions using $ARCH,
27 # do *not* do that - these defs are parsed out by other scripts
28 # that won't cope with that
29 if [ "$ARCH" = mips64el ]; then
30 DI_WWW_HOME="https://d-i.debian.org/daily-images/mips64el/daily"
31 elif [ "$ARCH" = mipsel ]; then
32 DI_WWW_HOME="https://d-i.debian.org/daily-images/mipsel/daily"
33 elif [ "$ARCH" = mips ]; then
34 DI_WWW_HOME="https://d-i.debian.org/daily-images/mips/daily"
35 else
36 echo "$0: unknown arch $ARCH; abort"
37 exit 1
38 fi
39 try_di_image_cache
40 else
41 DI_WWW_HOME=$(echo $DI_WWW_HOME | sed "s,%ARCH%,$ARCH,")
42 fi
43
44 # This arch is currently not bootable directly from CD, and there's
45 # not a lot we can do about that. But add the needed files in the
46 # right place so that users can find them, at least
47 copy_arch_images