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)
18 # $5 - kernel boot file, the zImage
21 # User may have a custom install script
23 if [ -x ~/bin/${CROSS_COMPILE}installkernel ]; then exec ~/bin/${CROSS_COMPILE}installkernel "$@"; fi
24 if [ -x /sbin/${CROSS_COMPILE}installkernel ]; then exec /sbin/${CROSS_COMPILE}installkernel "$@"; fi
28 # this should work for both the pSeries zImage and the iSeries vmlinux.sm
29 image_name=`basename $2`
31 if [ -f $4/$image_name ]; then
32 mv $4/$image_name $4/$image_name.old
35 if [ -f $4/System.map ]; then
36 mv $4/System.map $4/System.old
39 cat $2 > $4/$image_name