File: boot-mips-common

package info (click to toggle)
debian-cd 3.2.3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 10,848 kB
  • sloc: sh: 6,129; perl: 4,129; makefile: 413
file content (47 lines) | stat: -rw-r--r-- 1,502 bytes parent folder | download | duplicates (19)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
# This script gets sourced from boot-mips, boot-mipsel and boot-mips64el
#
# $1 is the CD number
# $2 is the temporary CD build dir
#
# This is copied from the old arm script and it is currently disabled
# as there don't seem to be any CD-bootable mips* machines.

. $BASEDIR/tools/boot/$DI_CODENAME/common.sh

N=$1
CDDIR=$2
INSTALLDIR="install"

# Common options for all disks
add_mkisofs_opt $CDDIR/../$N.mkisofs_opts "-J -joliet-long"
add_mkisofs_opt $CDDIR/../$N.mkisofs_opts "-cache-inodes"
add_mkisofs_opt $CDDIR/../$N.mkisofs_opts "-l"

# Exit if this is not CD#1/DVD#1
if [ $N != "1" ]; then
    exit 0
fi

if [ "$DI_WWW_HOME" = "default" ]; then
    # Tempting as it might be to merge these definitions using $ARCH,
    # do *not* do that - these defs are parsed out by other scripts
    # that won't cope with that
    if [ "$ARCH" = mips64el ]; then
	DI_WWW_HOME="https://d-i.debian.org/daily-images/mips64el/daily"
    elif [ "$ARCH" = mipsel ]; then
        DI_WWW_HOME="https://d-i.debian.org/daily-images/mipsel/daily"
    elif [ "$ARCH" = mips ]; then
        DI_WWW_HOME="https://d-i.debian.org/daily-images/mips/daily"
    else
        echo "$0: unknown arch $ARCH; abort"
	exit 1
    fi
    try_di_image_cache
else
    DI_WWW_HOME=$(echo $DI_WWW_HOME | sed "s,%ARCH%,$ARCH,")
fi

# This arch is currently not bootable directly from CD, and there's
# not a lot we can do about that. But add the needed files in the
# right place so that users can find them, at least
copy_arch_images