]> git.wh0rd.org Git - home.git/commitdiff
add s390 support
authorMike Frysinger <vapier@gentoo.org>
Mon, 30 Aug 2010 02:14:03 +0000 (22:14 -0400)
committerMike Frysinger <vapier@gentoo.org>
Sat, 28 Apr 2012 19:36:36 +0000 (15:36 -0400)
.bin/installkernel

index fa230ecbf6fd9142eb7ece2a2e79f31af22f6553..be1063fa1b836bfb588377036794737e3dcce04a 100755 (executable)
@@ -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 "$@"