![]() |
|
|||
0001 #!/bin/sh 0002 # 0003 # This file is subject to the terms and conditions of the GNU General Public 0004 # License. See the file "COPYING" in the main directory of this archive 0005 # for more details. 0006 # 0007 # Copyright (C) 1995 by Linus Torvalds 0008 # 0009 # Adapted from code in arch/i386/boot/Makefile by H. Peter Anvin 0010 # Adapted from code in arch/i386/boot/install.sh by Russell King 0011 # 0012 # "make install" script for arm architecture 0013 # 0014 # Arguments: 0015 # $1 - kernel version 0016 # $2 - kernel image file 0017 # $3 - kernel map file 0018 # $4 - default install path (blank if root directory) 0019 0020 if [ "$(basename $2)" = "zImage" ]; then 0021 # Compressed install 0022 echo "Installing compressed kernel" 0023 base=vmlinuz 0024 else 0025 # Normal install 0026 echo "Installing normal kernel" 0027 base=vmlinux 0028 fi 0029 0030 if [ -f $4/$base-$1 ]; then 0031 mv $4/$base-$1 $4/$base-$1.old 0032 fi 0033 cat $2 > $4/$base-$1 0034 0035 # Install system map file 0036 if [ -f $4/System.map-$1 ]; then 0037 mv $4/System.map-$1 $4/System.map-$1.old 0038 fi 0039 cp $3 $4/System.map-$1 0040 0041 if [ -x /sbin/loadmap ]; then 0042 /sbin/loadmap 0043 else 0044 echo "You have to install it yourself" 0045 fi
[ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
This page was automatically generated by the 2.1.0 LXR engine. The LXR team |
![]() ![]() |