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

Subversion Repositories or1k_old

[/] [or1k_old/] [trunk/] [rc203soc/] [sw/] [uClinux/] [arch/] [armnommu/] [boot/] [install.sh] - Diff between revs 1622 and 1765

Go to most recent revision | Only display areas with differences | Details | Blame | View Log

Rev 1622 Rev 1765
#!/bin/sh
#!/bin/sh
#
#
# arch/arm/boot/install.sh
# arch/arm/boot/install.sh
#
#
# This file is subject to the terms and conditions of the GNU General Public
# This file is subject to the terms and conditions of the GNU General Public
# License.  See the file "COPYING" in the main directory of this archive
# License.  See the file "COPYING" in the main directory of this archive
# for more details.
# for more details.
#
#
# Copyright (C) 1995 by Linus Torvalds
# Copyright (C) 1995 by Linus Torvalds
#
#
# Adapted from code in arch/i386/boot/Makefile by H. Peter Anvin
# Adapted from code in arch/i386/boot/Makefile by H. Peter Anvin
#
#
# "make install" script for i386 architecture
# "make install" script for i386 architecture
#
#
# Arguments:
# Arguments:
#   $1 - kernel version
#   $1 - kernel version
#   $2 - kernel image file
#   $2 - kernel image file
#   $3 - kernel map file
#   $3 - kernel map file
#   $4 - default install path (blank if root directory)
#   $4 - default install path (blank if root directory)
#
#
 
 
# User may have a custom install script
# User may have a custom install script
 
 
if [ -x /sbin/installkernel ]; then
if [ -x /sbin/installkernel ]; then
  exec /sbin/installkernel "$@"
  exec /sbin/installkernel "$@"
fi
fi
 
 
if [ "$2" = "zImage" ]; then
if [ "$2" = "zImage" ]; then
# Compressed install
# Compressed install
  echo "Installing compressed kernel"
  echo "Installing compressed kernel"
  if [ -f $4/vmlinuz-$1 ]; then
  if [ -f $4/vmlinuz-$1 ]; then
    mv $4/vmlinuz-$1 $4/vmlinuz.old
    mv $4/vmlinuz-$1 $4/vmlinuz.old
  fi
  fi
 
 
  if [ -f $4/System.map-$1 ]; then
  if [ -f $4/System.map-$1 ]; then
    mv $4/System.map-$1 $4/System.old
    mv $4/System.map-$1 $4/System.old
  fi
  fi
 
 
  cat $2 > $4/vmlinuz-$1
  cat $2 > $4/vmlinuz-$1
  cp $3 $4/System.map-$1
  cp $3 $4/System.map-$1
else
else
# Normal install
# Normal install
  echo "Installing normal kernel"
  echo "Installing normal kernel"
  if [ -f $4/vmlinux-$1 ]; then
  if [ -f $4/vmlinux-$1 ]; then
    mv $4/vmlinux-$1 $4/vmlinux.old
    mv $4/vmlinux-$1 $4/vmlinux.old
  fi
  fi
 
 
  if [ -f $4/System.map ]; then
  if [ -f $4/System.map ]; then
    mv $4/System.map $4/System.old
    mv $4/System.map $4/System.old
  fi
  fi
 
 
  cat $2 > $4/vmlinux-$1
  cat $2 > $4/vmlinux-$1
  cp $3 $4/System.map
  cp $3 $4/System.map
fi
fi
 
 
if [ -x /sbin/loadmap ]; then
if [ -x /sbin/loadmap ]; then
  /sbin/loadmap --rdev /dev/ima
  /sbin/loadmap --rdev /dev/ima
else
else
  echo "You have to install it yourself"
  echo "You have to install it yourself"
fi
fi
 
 

powered by: WebSVN 2.1.0

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