From: Matthew Wilcox <willy@debian.org>
To: linux-ia64@vger.kernel.org
Subject: [PATCH] make install
Date: Tue, 24 Feb 2004 15:33:59 +0000 [thread overview]
Message-ID: <20040224153359.GO25779@parcelfarce.linux.theplanet.co.uk> (raw)
i386 has a 'make install' target that I find rather useful. This
patch introduces it to ia64 too. This time I remembered to fix it
up to apply with -p1 ;-)
Once http://bugs.debian.org/234557 is accepted, it'll work in Debian.
Until then, you may wish to add your own ~/bin/installkernel or
chmod a-x /sbin/installkernel.
Index: arch/ia64/Makefile
=================================RCS file: /var/cvs/linux-2.6/arch/ia64/Makefile,v
retrieving revision 1.9
diff -u -p -r1.9 Makefile
--- a/arch/ia64/Makefile 27 Jan 2004 18:44:19 -0000 1.9
+++ b/arch/ia64/Makefile 24 Feb 2004 15:26:43 -0000
@@ -104,9 +104,12 @@ include/asm-ia64/.offsets.h.stamp:
boot: lib/lib.a vmlinux
$(Q)$(MAKE) $(build)=$(boot) $@
+install: vmlinux.gz
+ sh $(srctree)/arch/ia64/install.sh $(KERNELRELEASE) $< System.map "$(INSTALL_PATH)"
define archhelp
echo '* compressed - Build compressed kernel image'
+ echo ' install - Install compressed kernel image'
echo ' boot - Build vmlinux and bootloader for Ski simulator'
echo '* unwcheck - Check vmlinux for invalid unwind info'
endef
Index: arch/ia64/install.sh
=================================RCS file: arch/ia64/install.sh
diff -N arch/ia64/install.sh
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ b/arch/ia64/install.sh 24 Feb 2004 15:26:43 -0000
@@ -0,0 +1,40 @@
+#!/bin/sh
+#
+# arch/ia64/install.sh
+#
+# 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
+# for more details.
+#
+# Copyright (C) 1995 by Linus Torvalds
+#
+# Adapted from code in arch/i386/boot/Makefile by H. Peter Anvin
+#
+# "make install" script for ia64 architecture
+#
+# Arguments:
+# $1 - kernel version
+# $2 - kernel image file
+# $3 - kernel map file
+# $4 - default install path (blank if root directory)
+#
+
+# 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
+
+# Default install - same as make zlilo
+
+if [ -f $4/vmlinuz ]; then
+ mv $4/vmlinuz $4/vmlinuz.old
+fi
+
+if [ -f $4/System.map ]; then
+ mv $4/System.map $4/System.old
+fi
+
+cat $2 > $4/vmlinuz
+cp $3 $4/System.map
+
+test -x /usr/sbin/elilo && /usr/sbin/elilo
--
"Next the statesmen will invent cheap lies, putting the blame upon
the nation that is attacked, and every man will be glad of those
conscience-soothing falsities, and will diligently study them, and refuse
to examine any refutations of them; and thus he will by and by convince
himself that the war is just, and will thank God for the better sleep
he enjoys after this process of grotesque self-deception." -- Mark Twain
next reply other threads:[~2004-02-24 15:33 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-02-24 15:33 Matthew Wilcox [this message]
2004-02-27 14:43 ` [PATCH] make install Matthew Wilcox
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20040224153359.GO25779@parcelfarce.linux.theplanet.co.uk \
--to=willy@debian.org \
--cc=linux-ia64@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox