#!/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 AArch64 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 -e2021if [ "$(basename $2)" = "Image.gz" ] || [ "$(basename $2)" = "vmlinuz.efi" ]22then23# Compressed install24echo "Installing compressed kernel"25base=vmlinuz26else27# Normal install28echo "Installing normal kernel"29base=vmlinux30fi3132if [ -f $4/$base-$1 ]; then33mv $4/$base-$1 $4/$base-$1.old34fi35cat $2 > $4/$base-$13637# Install system map file38if [ -f $4/System.map-$1 ]; then39mv $4/System.map-$1 $4/System.map-$1.old40fi41cp $3 $4/System.map-$1424344