11da177e4SLinus Torvalds#!/bin/sh 20b73214fSGreg Kroah-Hartman# SPDX-License-Identifier: GPL-2.0 31da177e4SLinus Torvalds# 41da177e4SLinus Torvalds# arch/s390x/boot/install.sh 51da177e4SLinus Torvalds# 61da177e4SLinus Torvalds# Copyright (C) 1995 by Linus Torvalds 71da177e4SLinus Torvalds# 81da177e4SLinus Torvalds# Adapted from code in arch/i386/boot/Makefile by H. Peter Anvin 91da177e4SLinus Torvalds# 101da177e4SLinus Torvalds# "make install" script for s390 architecture 111da177e4SLinus Torvalds# 121da177e4SLinus Torvalds# Arguments: 131da177e4SLinus Torvalds# $1 - kernel version 141da177e4SLinus Torvalds# $2 - kernel image file 151da177e4SLinus Torvalds# $3 - kernel map file 161da177e4SLinus Torvalds# $4 - default install path (blank if root directory) 171da177e4SLinus Torvalds 18b059a39cSStefan Rasplecho "Warning: '${INSTALLKERNEL}' command not available - additional " \ 19b059a39cSStefan Raspl "bootloader config required" >&2 20*d24e18efSMarc Hartmayerif [ -f "$4/vmlinuz-$1" ]; then mv -- "$4/vmlinuz-$1" "$4/vmlinuz-$1.old"; fi 21*d24e18efSMarc Hartmayerif [ -f "$4/System.map-$1" ]; then mv -- "$4/System.map-$1" "$4/System.map-$1.old"; fi 221da177e4SLinus Torvalds 23*d24e18efSMarc Hartmayercat -- "$2" > "$4/vmlinuz-$1" 24*d24e18efSMarc Hartmayercp -- "$3" "$4/System.map-$1" 25