* add p cc
[mascara-docs.git] / i386 / linux / linux-2.3.21 / arch / arm / boot / install.sh
blob133eae430b734575fedb6ca59d47192c59011c77
1 #!/bin/sh
3 # arch/arm/boot/install.sh
5 # This file is subject to the terms and conditions of the GNU General Public
6 # License. See the file "COPYING" in the main directory of this archive
7 # for more details.
9 # Copyright (C) 1995 by Linus Torvalds
11 # Adapted from code in arch/i386/boot/Makefile by H. Peter Anvin
12 # Adapted from code in arch/i386/boot/install.sh by Russell King
14 # "make install" script for arm architecture
16 # Arguments:
17 # $1 - kernel version
18 # $2 - kernel image file
19 # $3 - kernel map file
20 # $4 - default install path (blank if root directory)
23 # User may have a custom install script
25 if [ -x /sbin/installkernel ]; then
26 exec /sbin/installkernel "$@"
29 if [ "$2" = "zImage" ]; then
30 # Compressed install
31 echo "Installing compressed kernel"
32 if [ -f $4/vmlinuz-$1 ]; then
33 mv $4/vmlinuz-$1 $4/vmlinuz.old
36 if [ -f $4/System.map-$1 ]; then
37 mv $4/System.map-$1 $4/System.old
40 cat $2 > $4/vmlinuz-$1
41 cp $3 $4/System.map-$1
42 else
43 # Normal install
44 echo "Installing normal kernel"
45 if [ -f $4/vmlinux-$1 ]; then
46 mv $4/vmlinux-$1 $4/vmlinux.old
49 if [ -f $4/System.map ]; then
50 mv $4/System.map $4/System.old
53 cat $2 > $4/vmlinux-$1
54 cp $3 $4/System.map
57 if [ -x /sbin/loadmap ]; then
58 /sbin/loadmap --rdev /dev/ima
59 else
60 echo "You have to install it yourself"