summaryrefslogtreecommitdiffstats
path: root/arch/i386/boot/install.sh
diff options
context:
space:
mode:
authorH. Peter Anvin2006-01-08 02:38:39 +0100
committerSam Ravnborg2006-01-09 20:36:48 +0100
commit0d20babd86b40fa5ac55d9ebf31d05f6f7082161 (patch)
treeffa209ee8d843b5f57b4062c2140971a5848b546 /arch/i386/boot/install.sh
parentfrv: Use KERNELRELEASE (diff)
downloadkernel-qcow2-linux-0d20babd86b40fa5ac55d9ebf31d05f6f7082161.tar.gz
kernel-qcow2-linux-0d20babd86b40fa5ac55d9ebf31d05f6f7082161.tar.xz
kernel-qcow2-linux-0d20babd86b40fa5ac55d9ebf31d05f6f7082161.zip
kbuild: drop vmlinux dependency from "make install"
This removes the dependency from vmlinux to install, thus avoiding the current situation where "make install" has a nasty tendency to leave root-turds in the working directory. It also updates x86-64 to be in sync with i386. Signed-off-by: H. Peter Anvin <hpa@zytor.com> Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
Diffstat (limited to 'arch/i386/boot/install.sh')
-rw-r--r--arch/i386/boot/install.sh14
1 files changed, 14 insertions, 0 deletions
diff --git a/arch/i386/boot/install.sh b/arch/i386/boot/install.sh
index f17b40dfc0f4..5e44c736eea8 100644
--- a/arch/i386/boot/install.sh
+++ b/arch/i386/boot/install.sh
@@ -19,6 +19,20 @@
# $4 - default install path (blank if root directory)
#
+verify () {
+ if [ ! -f "$1" ]; then
+ echo "" 1>&2
+ echo " *** Missing file: $1" 1>&2
+ echo ' *** You need to run "make" before "make install".' 1>&2
+ echo "" 1>&2
+ exit 1
+ fi
+}
+
+# Make sure the files actually exist
+verify "$2"
+verify "$3"
+
# User may have a custom install script
if [ -x ~/bin/${CROSS_COMPILE}installkernel ]; then exec ~/bin/${CROSS_COMPILE}installkernel "$@"; fi