3 # This file is subject to the terms and conditions of the GNU General Public
4 # License. See the file "COPYING" in the main directory of this archive
7 # Copyright (C) 1995 by Linus Torvalds
9 # Blatantly stolen from in arch/i386/boot/install.sh by Dave Hansen
11 # "make install" script for ppc64 architecture
15 # $2 - kernel image file
16 # $3 - kernel map file
17 # $4 - default install path (blank if root directory)
20 # Bail with error code if anything goes wrong
24 if [ ! -f "$1" ]; then
26 echo " *** Missing file: $1" 1>&2
27 echo ' *** You need to run "make" before "make install".' 1>&2
33 # Make sure the files actually exist
37 # User may have a custom install script
39 if [ -x ~/bin/${INSTALLKERNEL} ]; then exec ~/bin/${INSTALLKERNEL} "$@"; fi
40 if [ -x /sbin/${INSTALLKERNEL} ]; then exec /sbin/${INSTALLKERNEL} "$@"; fi
44 # this should work for both the pSeries zImage and the iSeries vmlinux.sm
45 image_name=`basename $2`
47 if [ -f $4/$image_name ]; then
48 mv $4/$image_name $4/$image_name.old
51 if [ -f $4/System.map ]; then
52 mv $4/System.map $4/System.old
55 cat $2 > $4/$image_name