xref: /kernel/linux/linux-6.6/arch/s390/boot/install.sh (revision 62306a36)
162306a36Sopenharmony_ci#!/bin/sh
262306a36Sopenharmony_ci# SPDX-License-Identifier: GPL-2.0
362306a36Sopenharmony_ci#
462306a36Sopenharmony_ci# arch/s390x/boot/install.sh
562306a36Sopenharmony_ci#
662306a36Sopenharmony_ci# Copyright (C) 1995 by Linus Torvalds
762306a36Sopenharmony_ci#
862306a36Sopenharmony_ci# Adapted from code in arch/i386/boot/Makefile by H. Peter Anvin
962306a36Sopenharmony_ci#
1062306a36Sopenharmony_ci# "make install" script for s390 architecture
1162306a36Sopenharmony_ci#
1262306a36Sopenharmony_ci# Arguments:
1362306a36Sopenharmony_ci#   $1 - kernel version
1462306a36Sopenharmony_ci#   $2 - kernel image file
1562306a36Sopenharmony_ci#   $3 - kernel map file
1662306a36Sopenharmony_ci#   $4 - default install path (blank if root directory)
1762306a36Sopenharmony_ci
1862306a36Sopenharmony_ciecho "Warning: '${INSTALLKERNEL}' command not available - additional " \
1962306a36Sopenharmony_ci     "bootloader config required" >&2
2062306a36Sopenharmony_ciif [ -f "$4/vmlinuz-$1" ]; then mv -- "$4/vmlinuz-$1" "$4/vmlinuz-$1.old"; fi
2162306a36Sopenharmony_ciif [ -f "$4/System.map-$1" ]; then mv -- "$4/System.map-$1" "$4/System.map-$1.old"; fi
2262306a36Sopenharmony_ci
2362306a36Sopenharmony_cicat -- "$2" > "$4/vmlinuz-$1"
2462306a36Sopenharmony_cicp -- "$3" "$4/System.map-$1"
25