mirror of https://github.com/ipxe/ipxe.git
Rename .lilo extension to .lkrn and updated dependencies
parent
b3ca73c303
commit
28d8d828b3
|
@ -68,9 +68,9 @@ MEDIA += lmelfd
|
||||||
OBJS_lmelfdprefix = lmelfdprefix zlmelfdprefix
|
OBJS_lmelfdprefix = lmelfdprefix zlmelfdprefix
|
||||||
CFLAGS_zlmelfdprefix = $(CFLAGS_ZPREFIX)
|
CFLAGS_zlmelfdprefix = $(CFLAGS_ZPREFIX)
|
||||||
|
|
||||||
MEDIA += lilo
|
MEDIA += lkrn
|
||||||
OBJS_liloprefix = liloprefix zliloprefix
|
OBJS_lkrnprefix = lkrnprefix zlkrnprefix
|
||||||
CFLAGS_zliloprefix = $(CFLAGS_ZPREFIX)
|
CFLAGS_zlkrnprefix = $(CFLAGS_ZPREFIX)
|
||||||
|
|
||||||
MEDIA += bImage
|
MEDIA += bImage
|
||||||
OBJS_bImageprefix = bImageprefix zbImageprefix
|
OBJS_bImageprefix = bImageprefix zbImageprefix
|
||||||
|
@ -113,12 +113,12 @@ NON_AUTO_MEDIA += fd0
|
||||||
|
|
||||||
# rule to make a non-emulation ISO boot image
|
# rule to make a non-emulation ISO boot image
|
||||||
NON_AUTO_MEDIA += iso
|
NON_AUTO_MEDIA += iso
|
||||||
%iso: %lilo util/geniso
|
%iso: %lkrn util/geniso
|
||||||
ISOLINUX_BIN=$(ISOLINUX_BIN) bash util/geniso $@ $<
|
ISOLINUX_BIN=$(ISOLINUX_BIN) bash util/geniso $@ $<
|
||||||
|
|
||||||
# rule to make a floppy emulation ISO boot image
|
# rule to make a floppy emulation ISO boot image
|
||||||
NON_AUTO_MEDIA += liso
|
NON_AUTO_MEDIA += liso
|
||||||
%liso: %lilo util/genliso
|
%liso: %lkrn util/genliso
|
||||||
bash util/genliso $@ $<
|
bash util/genliso $@ $<
|
||||||
|
|
||||||
# rule to make a USB disk image
|
# rule to make a USB disk image
|
||||||
|
|
|
@ -91,7 +91,7 @@ _prefix:
|
||||||
|
|
||||||
/*
|
/*
|
||||||
This is a minimal boot sector. If anyone tries to execute it (e.g., if
|
This is a minimal boot sector. If anyone tries to execute it (e.g., if
|
||||||
a .lilo file is dd'ed to a floppy), print an error message.
|
a .lkrn file is dd'ed to a floppy), print an error message.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
bootsector:
|
bootsector:
|
||||||
|
|
|
@ -2,14 +2,14 @@
|
||||||
#
|
#
|
||||||
# Generate a isolinux ISO boot image
|
# Generate a isolinux ISO boot image
|
||||||
#
|
#
|
||||||
# geniso foo.iso foo.zlilo
|
# geniso foo.iso foo.lkrn
|
||||||
#
|
#
|
||||||
# the ISO image is the first argument so that a list of .zlilo images
|
# the ISO image is the first argument so that a list of .lkrn images
|
||||||
# to include can be specified
|
# to include can be specified
|
||||||
#
|
#
|
||||||
case $# in
|
case $# in
|
||||||
0|1)
|
0|1)
|
||||||
echo Usage: $0 foo.iso foo.zlilo ...
|
echo Usage: $0 foo.iso foo.lkrn ...
|
||||||
exit 1
|
exit 1
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
@ -40,8 +40,8 @@ do
|
||||||
continue
|
continue
|
||||||
fi
|
fi
|
||||||
b=$(basename $f)
|
b=$(basename $f)
|
||||||
g=${b%.zlilo}
|
g=${b%.lkrn}
|
||||||
g=${g//[^a-z0-9]}.zli
|
g=${g//[^a-z0-9]}.krn
|
||||||
case "$first" in
|
case "$first" in
|
||||||
"")
|
"")
|
||||||
echo DEFAULT $g
|
echo DEFAULT $g
|
||||||
|
|
|
@ -2,9 +2,9 @@
|
||||||
#
|
#
|
||||||
# Generate a legacy floppy emulation ISO boot image
|
# Generate a legacy floppy emulation ISO boot image
|
||||||
#
|
#
|
||||||
# genliso foo.liso foo.zlilo
|
# genliso foo.liso foo.lkrn
|
||||||
#
|
#
|
||||||
# the ISO image is the first argument so that a list of .zlilo images
|
# the ISO image is the first argument so that a list of .lkrn images
|
||||||
# to include can be specified
|
# to include can be specified
|
||||||
#
|
#
|
||||||
case $0 in
|
case $0 in
|
||||||
|
@ -16,12 +16,12 @@ case $0 in
|
||||||
esac
|
esac
|
||||||
case $# in
|
case $# in
|
||||||
0|1)
|
0|1)
|
||||||
echo Usage: $0 foo.liso foo.zlilo ...
|
echo Usage: $0 foo.liso foo.lkrn ...
|
||||||
exit 1
|
exit 1
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
case "`mtools -V`" in
|
case "`mtools -V`" in
|
||||||
Mtools\ version\ 3.9.9*|Mtools\ version\ 4.*)
|
Mtools\ version\ 3.9.9*|Mtools\ version\ 3.9.1[0-9]*|Mtools\ version\ 4.*)
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
echo Mtools version 3.9.9 or later is required
|
echo Mtools version 3.9.9 or later is required
|
||||||
|
@ -57,9 +57,9 @@ do
|
||||||
fi
|
fi
|
||||||
# shorten name for 8.3 filesystem
|
# shorten name for 8.3 filesystem
|
||||||
b=$(basename $f)
|
b=$(basename $f)
|
||||||
g=${b%.zlilo}
|
g=${b%.lkrn}
|
||||||
g=${g//[^a-z0-9]}
|
g=${g//[^a-z0-9]}
|
||||||
g=${g:0:8}.zli
|
g=${g:0:8}.krn
|
||||||
case "$first" in
|
case "$first" in
|
||||||
"")
|
"")
|
||||||
echo DEFAULT $g
|
echo DEFAULT $g
|
||||||
|
|
|
@ -1,40 +0,0 @@
|
||||||
#!/usr/bin/perl -w
|
|
||||||
|
|
||||||
use constant SYSSIZE_LOC => 500; # bytes from beginning of boot block
|
|
||||||
use constant MINSIZE => 32768;
|
|
||||||
|
|
||||||
use strict;
|
|
||||||
|
|
||||||
use bytes;
|
|
||||||
|
|
||||||
$#ARGV >= 1 or die "Usage: $0 liloprefix file ...\n";
|
|
||||||
open(L, "$ARGV[0]") or die "$ARGV[0]: $!\n";
|
|
||||||
undef($/);
|
|
||||||
my $liloprefix = <L>;
|
|
||||||
close(L);
|
|
||||||
length($liloprefix) >= 512 or die "LILO prefix too short\n";
|
|
||||||
shift(@ARGV);
|
|
||||||
my $totalsize = 0;
|
|
||||||
for my $file (@ARGV) {
|
|
||||||
next if (! -f $file or ! -r $file);
|
|
||||||
$totalsize += -s $file;
|
|
||||||
}
|
|
||||||
my $pad = 0;
|
|
||||||
if ($totalsize < MINSIZE) {
|
|
||||||
$pad = MINSIZE - $totalsize;
|
|
||||||
$totalsize = MINSIZE;
|
|
||||||
}
|
|
||||||
print STDERR "LILO payload is $totalsize bytes\n";
|
|
||||||
$totalsize += 16;
|
|
||||||
$totalsize >>= 4;
|
|
||||||
substr($liloprefix, SYSSIZE_LOC, 2) = pack('v', $totalsize);
|
|
||||||
print $liloprefix;
|
|
||||||
for my $file (@ARGV) {
|
|
||||||
next unless open(I, "$file");
|
|
||||||
undef($/);
|
|
||||||
my $data = <I>;
|
|
||||||
print $data;
|
|
||||||
close(I);
|
|
||||||
}
|
|
||||||
print "\x0" x $pad;
|
|
||||||
exit(0);
|
|
Loading…
Reference in New Issue