#!/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 the RISC-V Linux port12#13# Arguments:14# $1 - kernel version15# $2 - kernel image file16# $3 - kernel map file17# $4 - default install path (blank if root directory)1819set -e2021case "${2##*/}" in22# Compressed install23Image.*|vmlinuz.efi)24echo "Installing compressed kernel"25base=vmlinuz26;;27# Normal install28*)29echo "Installing normal kernel"30base=vmlinux31;;32esac3334if [ -f $4/$base-$1 ]; then35mv $4/$base-$1 $4/$base-$1.old36fi37cat $2 > $4/$base-$13839# Install system map file40if [ -f $4/System.map-$1 ]; then41mv $4/System.map-$1 $4/System.map-$1.old42fi43cp $3 $4/System.map-$1444546