From: Mike Frysinger Date: Mon, 30 Aug 2010 02:14:03 +0000 (-0400) Subject: add s390 support X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=ab9977c3446bb34c0f92ffd10e265ceda068eb1b;p=home.git add s390 support --- 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 "$@"