~ubuntu-branches/ubuntu/quantal/ubuntu-release-upgrader/quantal

« back to all changes in this revision

Viewing changes to DistUpgrade/base-installer/kernel/mipsel.sh

  • Committer: Package Import Robot
  • Author(s): Brian Murray
  • Date: 2012-07-25 12:06:06 UTC
  • mfrom: (1.1.8 quantal)
  • Revision ID: package-import@ubuntu.com-20120725120606-qrrlcfucnmf3pmb8
Tags: 1:0.174
DistUpgrade/DistUpgradeApport.py: use a whitelist to ensure that only
specified files are gathered when creating an apport crash report
(LP: #1004503)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
arch_get_kernel_flavour () {
2
 
        case "$SUBARCH" in
3
 
            4kc-malta|5kc-malta|loongson-2e|loongson-2f|r3k-kn02|r4k-kn04|sb1-bcm91250a|sb1a-bcm91480b)
4
 
                echo "$SUBARCH"
5
 
                return 0 ;;
6
 
            qemu-mips32)
7
 
                echo "qemu"
8
 
                return 0 ;;
9
 
            cobalt)
10
 
                echo r5k-cobalt
11
 
                return 0 ;;
12
 
            *)
13
 
                warning "Unknown $ARCH subarchitecture '$SUBARCH'."
14
 
                return 1 ;;
15
 
        esac
16
 
}
17
 
 
18
 
arch_check_usable_kernel () {
19
 
        # Subarchitecture must match exactly
20
 
        if echo "$1" | grep -Eq -- "-$2(-.*)?$"; then return 0; fi
21
 
        # The 4kc-malta kernel will do for 5kc-malta as well
22
 
        if [ "$2" = 5kc-malta ] && \
23
 
           echo "$1" | grep -Eq -- "-4kc-malta(-.*)?$"; then
24
 
                return 0
25
 
        fi
26
 
        return 1
27
 
}
28
 
 
29
 
arch_get_kernel () {
30
 
        case "$KERNEL_MAJOR" in
31
 
            2.6|3.*)
32
 
                case $1 in
33
 
                    5kc-malta)
34
 
                        echo "linux-image-$KERNEL_MAJOR-$1"
35
 
                        set 4kc-malta
36
 
                        ;;
37
 
                esac
38
 
                echo "linux-image-$KERNEL_MAJOR-$1"
39
 
                ;;
40
 
            *)
41
 
                warning "Unsupported kernel major '$KERNEL_MAJOR'."
42
 
                ;;
43
 
        esac
44
 
}