#!/bin/sh1#2# This file is subject to the terms and conditions of the GNU General Public3# License. See the file "COPYING" in the main directory of this archive4# for more details.5#6# Copyright (C) 1995 by Linus Torvalds7#8# Adapted from code in arch/i386/boot/Makefile by H. Peter Anvin9# Adapted from code in arch/i386/boot/install.sh by Russell King10#11# "make install" script for arm architecture12#13# Arguments:14# $1 - kernel version15# $2 - kernel image file16# $3 - kernel map file17# $4 - default install path (blank if root directory)1819set -e2021if [ "$(basename $2)" = "zImage" ]; then22# Compressed install23echo "Installing compressed kernel"24base=vmlinuz25else26# Normal install27echo "Installing normal kernel"28base=vmlinux29fi3031if [ -f $4/$base-$1 ]; then32mv $4/$base-$1 $4/$base-$1.old33fi34cat $2 > $4/$base-$13536# Install system map file37if [ -f $4/System.map-$1 ]; then38mv $4/System.map-$1 $4/System.map-$1.old39fi40cp $3 $4/System.map-$14142if [ -x /sbin/loadmap ]; then43/sbin/loadmap44else45echo "You have to install it yourself"46fi474849