From: Harald Dunkel <harri@synopsys.COM>
To: linux-kernel@vger.kernel.org
Subject: Patch: Support for grub at installation time
Date: Sun, 23 Dec 2001 15:39:59 +0100 [thread overview]
Message-ID: <3C25ECBF.AF0E819C@Synopsys.COM> (raw)
[-- Attachment #1: Type: text/plain, Size: 651 bytes --]
Hi folks,
Below you can find a tiny patch to add 2 new targets to the top level
Makefile: bzgrub and zgrub. This is a suggestion about how the Grub
boot loader could be supported.
It would be nice if you could consider this patch to be included in
one of the future kernels. I am not the kernel patch specialist, so
please excuse if I missed to follow a specific procedure.
Regards
Harri
--
Harald Dunkel | dunkel@Synopsys.COM | Against stupidity the very gods
Synopsys GmbH | Kaiserstr. 100 | Themselves contend in vain.
52134 Herzogenrath, Germany |
+49 2407 9558 (fax? 44: 0) | Schiller, The Maid of Orleans
[-- Attachment #2: grub.patch --]
[-- Type: text/plain, Size: 3925 bytes --]
diff -cr linux.orig/Documentation/kbuild/commands.txt linux/Documentation/kbuild/commands.txt
*** linux.orig/Documentation/kbuild/commands.txt Fri Jul 28 21:50:51 2000
--- linux/Documentation/kbuild/commands.txt Sun Dec 23 14:36:09 2001
***************
*** 24,38 ****
text interface, or 'make xconfig' for an X interface using TCL/TK.
'make bzImage' will leave your new kernel image in arch/i386/boot/bzImage.
! You can also use 'make bzdisk' or 'make bzlilo'.
! See the lilo documentation for more information on how to use lilo.
You can also use the 'loadlin' program to boot Linux from MS-DOS.
Some computers won't work with 'make bzImage', either due to hardware
problems or very old versions of lilo or loadlin. If your kernel image
! is small, you may use 'make zImage', 'make zdisk', or 'make zlilo'
! on theses systems.
If you find a file name 'vmlinux' in the top directory of the source tree,
just ignore it. This is an intermediate file and you can't boot from it.
--- 24,38 ----
text interface, or 'make xconfig' for an X interface using TCL/TK.
'make bzImage' will leave your new kernel image in arch/i386/boot/bzImage.
! You can also use 'make bzdisk', 'make bzgrub' or 'make bzlilo'.
! See the documentation for more information on how to use lilo or grub.
You can also use the 'loadlin' program to boot Linux from MS-DOS.
Some computers won't work with 'make bzImage', either due to hardware
problems or very old versions of lilo or loadlin. If your kernel image
! is small, you may use 'make zImage', 'make zdisk', 'make zgrub', or
! 'make zlilo' on theses systems.
If you find a file name 'vmlinux' in the top directory of the source tree,
just ignore it. This is an intermediate file and you can't boot from it.
diff -cr linux.orig/Documentation/kbuild/makefiles.txt linux/Documentation/kbuild/makefiles.txt
*** linux.orig/Documentation/kbuild/makefiles.txt Tue Feb 13 23:13:42 2001
--- linux/Documentation/kbuild/makefiles.txt Sun Dec 23 14:39:49 2001
***************
*** 427,432 ****
--- 427,433 ----
bootpfile alpha, ia64
bzImage i386, m68k
bzdisk i386
+ bzgrub i386
bzlilo i386
compressed i386, m68k, mips, mips64, sh
dasdfmt s390
***************
*** 446,451 ****
--- 447,453 ----
zImage arm, i386, m68k, mips, mips64, ppc, sh
zImage.initrd ppc
zdisk i386, mips, mips64, sh
+ zgrub i386
zinstall arm
zlilo i386
znetboot.initrd ppc
diff -cr linux.orig/arch/i386/Makefile linux/arch/i386/Makefile
*** linux.orig/arch/i386/Makefile Thu Apr 12 21:20:31 2001
--- linux/arch/i386/Makefile Sun Dec 23 13:37:16 2001
***************
*** 111,116 ****
--- 111,117 ----
FORCE: ;
.PHONY: zImage bzImage compressed zlilo bzlilo zdisk bzdisk install \
+ zgrub bzgrub \
clean archclean archmrproper archdep
zImage: vmlinux
***************
*** 128,133 ****
--- 129,140 ----
@$(MAKEBOOT) BOOTIMAGE=bzImage zlilo
bzlilo: vmlinux
@$(MAKEBOOT) BOOTIMAGE=bzImage zlilo
+
+ zgrub: vmlinux
+ @$(MAKEBOOT) BOOTIMAGE=zImage zgrub
+
+ bzgrub: vmlinux
+ @$(MAKEBOOT) BOOTIMAGE=bzImage zgrub
zdisk: vmlinux
@$(MAKEBOOT) BOOTIMAGE=zImage zdisk
diff -cr linux.orig/arch/i386/boot/Makefile linux/arch/i386/boot/Makefile
*** linux.orig/arch/i386/boot/Makefile Sun Aug 5 22:13:19 2001
--- linux/arch/i386/boot/Makefile Sun Dec 23 13:48:10 2001
***************
*** 36,41 ****
--- 36,46 ----
cp $(TOPDIR)/System.map $(INSTALL_PATH)/
if [ -x /sbin/lilo ]; then /sbin/lilo; else /etc/lilo/install; fi
+ zgrub: $(CONFIGURE) $(BOOTIMAGE)
+ cat $(BOOTIMAGE) > /boot/vmlinuz-$(KERNELRELEASE)
+ cp $(TOPDIR)/System.map /boot/System.map-$(KERNELRELEASE)
+ if [ -x /sbin/update-grub ]; then /sbin/update-grub; fi
+
install: $(CONFIGURE) $(BOOTIMAGE)
sh -x ./install.sh $(KERNELRELEASE) $(BOOTIMAGE) $(TOPDIR)/System.map "$(INSTALL_PATH)"
next reply other threads:[~2001-12-23 14:40 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-12-23 14:39 Harald Dunkel [this message]
2001-12-23 15:05 ` Patch: Support for grub at installation time Keith Owens
2001-12-23 20:54 ` Harald Dunkel
2001-12-23 21:14 ` Harald Dunkel
2001-12-23 22:17 ` H. Peter Anvin
2001-12-23 15:15 ` Christoph Hellwig
2001-12-24 12:27 ` Chmouel Boudjnah
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=3C25ECBF.AF0E819C@Synopsys.COM \
--to=harri@synopsys.com \
--cc=linux-kernel@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