From ab9977c3446bb34c0f92ffd10e265ceda068eb1b Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Sun, 29 Aug 2010 22:14:03 -0400 Subject: [PATCH] add s390 support --- .bin/installkernel | 34 +++++++++++++++++++++++++++------- 1 file changed, 27 insertions(+), 7 deletions(-) diff --git a/.bin/installkernel b/.bin/installkernel index fa230ec..be1063f 100755 --- a/.bin/installkernel +++ b/.bin/installkernel @@ -1,11 +1,31 @@ -#!/bin/bash -if [[ $2 == */blackfin/* ]] ; then - mmv() { [[ -e $1 ]] && mv "$1" "$2" ; } +!/bin/bash +# 2.6.35.4-default arch/s390/boot/image System.map Kerntypes /boot + +mmv() { [[ -e $1 ]] && mv "$1" "$2" ; } + +ver=$1 +img=$2 +map=$3 +# $4 == ?? +dir=$5 + +case ${img} in +*/blackfin/*) mmv $4/uImage $4/uImage.old - mmv $4/$3 $4/$3.old + mmv $4/${map} $4/${map}.old + + cp ${img} $4/uImage + cp ${map} $4/${map} + exit 0 + ;; - cp $2 $4/uImage - cp $3 $4/$3 +*/s390/*) + cp ${img} ${dir}/image-${ver} + cp ${map} ${dir}/System.map-${ver} + cp .config ${dir}/config-${ver} + ln -sf image-${ver} ${dir}/image + zipl exit 0 -fi + ;; +esac exec /sbin/installkernel "$@" -- 2.39.5