#!/bin/sh1#2# arch/arm/boot/install.sh3#4# This file is subject to the terms and conditions of the GNU General Public5# License. See the file "COPYING" in the main directory of this archive6# for more details.7#8# Copyright (C) 1995 by Linus Torvalds9#10# Adapted from code in arch/i386/boot/Makefile by H. Peter Anvin11# Adapted from code in arch/i386/boot/install.sh by Russell King12#13# "make install" script for arm architecture14#15# Arguments:16# $1 - kernel version17# $2 - kernel image file18# $3 - kernel map file19# $4 - default install path (blank if root directory)20#2122# User may have a custom install script23if [ -x ~/bin/${INSTALLKERNEL} ]; then exec ~/bin/${INSTALLKERNEL} "$@"; fi24if [ -x /sbin/${INSTALLKERNEL} ]; then exec /sbin/${INSTALLKERNEL} "$@"; fi2526if [ "$(basename $2)" = "zImage" ]; then27# Compressed install28echo "Installing compressed kernel"29base=vmlinuz30else31# Normal install32echo "Installing normal kernel"33base=vmlinux34fi3536if [ -f $4/$base-$1 ]; then37mv $4/$base-$1 $4/$base-$1.old38fi39cat $2 > $4/$base-$14041# Install system map file42if [ -f $4/System.map-$1 ]; then43mv $4/System.map-$1 $4/System.map-$1.old44fi45cp $3 $4/System.map-$14647if [ -x /sbin/loadmap ]; then48/sbin/loadmap49else50echo "You have to install it yourself"51fi525354