add grub-mbchk utility to grub
PATCH 1/1 add grub-mbchk utility to grub
To: [email protected]
Subject: [PATCH] add grub-mbchk utility to grub
Hi all,
I've been playing around with multiboot images, and found grub 0.97's
'mbchk' to be very useful. Its really nice from a shell script or other to easily answer "is this file a multiboot image?".
The attached patch basically copies mbchk.c from grub-0.97 to current
bzr with minimal changes.
Is that something that could be carried in grub2 ?
Thanks,
Scott
=== modified file 'conf/common.rmk'
common.rmk +5 -0
@@ -165,6 +165,11 @@ grub_editenv_SOURCES = gnulib/progname.c util/grub-editenv.c lib/envblk.c util/misc.c kern/emu/misc.c kern/emu/mm.c kern/misc.c kern/err.c CLEANFILES += grub-editenv +# for grub-mbchk +bin_UTILITIES += grub-mbchk +grub_mbchk_SOURCES = gnulib/progname.c util/grub-mbchk.c kern/emu/misc.c util/misc.c +CLEANFILES += grub-mbchk + # Needed for genmk.rb to work ifeq (0,1) bin_UTILITIES += grub-macho2img grub-pe2elf
=== added file 'docs/man/grub-mbchk.h2m'
man/grub-mbchk.h2m +2 -0
@@ -0,0 +1,2 @@ +[NAME] +grub-mbchk \- check the format of a Multiboot kernel
=== added file 'util/grub-mbchk.c'
grub-mbchk.c +260 -0
260 lines not on this page · raw message