aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/arch/powerpc/boot/install.sh
diff options
context:
space:
mode:
authorGrant Likely <grant.likely@secretlab.ca>2008-12-19 14:57:20 +0000
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>2009-01-08 16:25:09 +1100
commit29f1aff2cc20d8b81fe3c890b8f134e84b8f41fe (patch)
tree10b40261c36d923ff047f74a2b06cca4469db434 /arch/powerpc/boot/install.sh
parentpowerpc/mm: Cleanup careful_allocation(): consolidate memset() (diff)
downloadwireguard-linux-29f1aff2cc20d8b81fe3c890b8f134e84b8f41fe.tar.xz
wireguard-linux-29f1aff2cc20d8b81fe3c890b8f134e84b8f41fe.zip
powerpc: Copy bootable images in the default install script
This patch makes the default install script (arch/powerpc/boot/install.sh) copy the bootable image files into the install directory. Before this patch only the vmlinux image file was copied. This patch makes the default 'make install' command useful for embedded development when $(INSTALL_PATH) is set in the environment. As a side effect, this patch changes the calling convention of the install.sh script. Instead of a single 5th parameter, the script is now passed a list of all the target images stored in the $(image-y) Makefile variable. This should be backwards compatible with existing install scripts since it just adds additional arguments and does not change existing ones. Signed-off-by: Grant Likely <grant.likely@secretlab.ca> Acked-by: Josh Boyer <jwboyer@linux.vnet.ibm.com> Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Diffstat (limited to 'arch/powerpc/boot/install.sh')
-rw-r--r--arch/powerpc/boot/install.sh14
1 files changed, 13 insertions, 1 deletions
diff --git a/arch/powerpc/boot/install.sh b/arch/powerpc/boot/install.sh
index b002bfd56786..51b2387bdba0 100644
--- a/arch/powerpc/boot/install.sh
+++ b/arch/powerpc/boot/install.sh
@@ -15,7 +15,7 @@
# $2 - kernel image file
# $3 - kernel map file
# $4 - default install path (blank if root directory)
-# $5 - kernel boot file, the zImage
+# $5 and more - kernel boot files; zImage*, uImage, cuImage.*, etc.
#
# User may have a custom install script
@@ -38,3 +38,15 @@ fi
cat $2 > $4/$image_name
cp $3 $4/System.map
+
+# Copy all the bootable image files
+path=$4
+shift 4
+while [ $# -ne 0 ]; do
+ image_name=`basename $1`
+ if [ -f $path/$image_name ]; then
+ mv $path/$image_name $path/$image_name.old
+ fi
+ cat $1 > $path/$image_name
+ shift
+done;