Commit 2e8ff6b5 authored by Russell King's avatar Russell King

[ARM] Update ARM kernel install script

- fix up for kbuild changes
- run users own kernel install script if present
parent deaeb66a
...@@ -21,41 +21,32 @@ ...@@ -21,41 +21,32 @@
# #
# User may have a custom install script # User may have a custom install script
if [ -x ~/bin/installkernel ]; then exec ~/bin/installkernel "$@"; fi
if [ -x /sbin/installkernel ]; then exec /sbin/installkernel "$@"; fi
if [ -x /sbin/installkernel ]; then if [ "$(basename $2)" = "zImage" ]; then
exec /sbin/installkernel "$@"
fi
if [ "$2" = "zImage" ]; then
# Compressed install # Compressed install
echo "Installing compressed kernel" echo "Installing compressed kernel"
if [ -f $4/vmlinuz-$1 ]; then base=vmlinuz
mv $4/vmlinuz-$1 $4/vmlinuz.old
fi
if [ -f $4/System.map-$1 ]; then
mv $4/System.map-$1 $4/System.old
fi
cat $2 > $4/vmlinuz-$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 base=vmlinux
mv $4/vmlinux-$1 $4/vmlinux.old fi
fi
if [ -f $4/System.map ]; then if [ -f $4/$base-$1 ]; then
mv $4/System.map $4/System.old mv $4/$base-$1 $4/$base-$1.old
fi fi
cat $2 > $4/$base-$1
cat $2 > $4/vmlinux-$1 # Install system map file
cp $3 $4/System.map if [ -f $4/System.map-$1 ]; then
mv $4/System.map-$1 $4/System.map-$1.old
fi fi
cp $3 $4/System.map-$1
if [ -x /sbin/loadmap ]; then if [ -x /sbin/loadmap ]; then
/sbin/loadmap --rdev /dev/ima /sbin/loadmap
else else
echo "You have to install it yourself" echo "You have to install it yourself"
fi fi
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment