OpenCores
URL https://opencores.org/ocsvn/or1k_old/or1k_old/trunk

Subversion Repositories or1k_old

[/] [or1k_old/] [trunk/] [uclinux/] [uClinux-2.0.x/] [arch/] [armnommu/] [boot/] [install.sh] - Blame information for rev 1782

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 199 simons
#!/bin/sh
2
#
3
# arch/arm/boot/install.sh
4
#
5
# This file is subject to the terms and conditions of the GNU General Public
6
# License.  See the file "COPYING" in the main directory of this archive
7
# for more details.
8
#
9
# Copyright (C) 1995 by Linus Torvalds
10
#
11
# Adapted from code in arch/i386/boot/Makefile by H. Peter Anvin
12
#
13
# "make install" script for i386 architecture
14
#
15
# Arguments:
16
#   $1 - kernel version
17
#   $2 - kernel image file
18
#   $3 - kernel map file
19
#   $4 - default install path (blank if root directory)
20
#
21
 
22
# User may have a custom install script
23
 
24
if [ -x /sbin/installkernel ]; then
25
  exec /sbin/installkernel "$@"
26
fi
27
 
28
if [ "$2" = "zImage" ]; then
29
# Compressed install
30
  echo "Installing compressed kernel"
31
  if [ -f $4/vmlinuz-$1 ]; then
32
    mv $4/vmlinuz-$1 $4/vmlinuz.old
33
  fi
34
 
35
  if [ -f $4/System.map-$1 ]; then
36
    mv $4/System.map-$1 $4/System.old
37
  fi
38
 
39
  cat $2 > $4/vmlinuz-$1
40
  cp $3 $4/System.map-$1
41
else
42
# Normal install
43
  echo "Installing normal kernel"
44
  if [ -f $4/vmlinux-$1 ]; then
45
    mv $4/vmlinux-$1 $4/vmlinux.old
46
  fi
47
 
48
  if [ -f $4/System.map ]; then
49
    mv $4/System.map $4/System.old
50
  fi
51
 
52
  cat $2 > $4/vmlinux-$1
53
  cp $3 $4/System.map
54
fi
55
 
56
if [ -x /sbin/loadmap ]; then
57
  /sbin/loadmap --rdev /dev/ima
58
else
59
  echo "You have to install it yourself"
60
fi

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.