patch to add binstall and complete bzImage/zImage symmetry

Aaron Ucko (UCKO@vax1.rockhurst.edu)
Tue, 28 May 1996 11:12:40 -0600 (CST)


--- linux-pre2.0.8/arch/i386/boot/Makefile.dist Tue May 7 13:18:29 1996
+++ linux-pre2.0.8/arch/i386/boot/Makefile Tue May 28 10:12:45 1996
@@ -53,6 +53,9 @@
install: $(CONFIGURE) zImage
sh ./install.sh $(VERSION).$(PATCHLEVEL).$(SUBLEVEL) zImage $(TOPDIR)/System.map "$(INSTALL_PATH)"

+binstall: $(CONFIGURE) bzImage
+ sh ./binstall.sh $(VERSION).$(PATCHLEVEL).$(SUBLEVEL) bzImage $(TOPDIR)/System.map "$(INSTALL_PATH)"
+
tools/build: tools/build.c
$(HOSTCC) $(HOSTCFLAGS) -o $@ $< -I$(TOPDIR)/include

--- linux-pre2.0.8/arch/i386/boot/binstall.sh.dist Tue May 28 10:12:17 1996
+++ linux-pre2.0.8/arch/i386/boot/binstall.sh Tue May 28 10:13:41 1996
@@ -0,0 +1,39 @@
+#!/bin/sh
+#
+# arch/i386/boot/binstall.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 binstall" script for i386 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 /sbin/installbkernel ]; then exec /sbin/installbkernel "$@"; fi
+
+# Default install - same as make bzlilo
+
+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
+
+if [ -x /sbin/lilo ]; then /sbin/lilo; else /etc/lilo/install; fi
--- linux-pre2.0.8/arch/i386/Makefile.dist Tue Mar 12 17:07:24 1996
+++ linux-pre2.0.8/arch/i386/Makefile Tue May 28 10:11:53 1996
@@ -122,6 +122,9 @@
install: vmlinux
@$(MAKEBOOT) install

+binstall: vmlinux
+ @$(MAKEBOOT) binstall
+
archclean:
@$(MAKEBOOT) clean
$(MAKE) -C arch/$(ARCH)/kernel clean