NASM = nasm
-all: bootsect.bin ldlinux.sys syslinux.com
+all: bootsect.bin ldlinux.sys syslinux.com syslinux
ldlinux.bin: ldlinux.asm
$(NASM) -f bin -dHEX_TIME="`perl now.pl`" -l ldlinux.lst -o ldlinux.bin ldlinux.asm
$(NASM) -f bin -l syslinux.lst -o syslinux.com syslinux.asm
ls -l syslinux.com
+syslinux: syslinux.pl.in bootsect.bin ldlinux.sys
+ @if [ ! -x `which perl` ]; then \
+ echo 'ERROR: cannot find perl'; exit 1 ; fi
+ echo '#!' `which perl` > syslinux
+ cat syslinux.pl.in bootsect.bin ldlinux.sys >> syslinux
+ chmod a+x syslinux
+
clean:
rm -f *.bin *.lst *.sys
;
vk_seg equ 8000h ; This is where we stick'em
xfer_buf_seg equ 7000h ; Bounce buffer for I/O to high mem
-
+fat_seg equ 1000h ; 128K area for FAT (2x64K)
;
; For our convenience: define macros for jump-over-unconditinal jumps
--- /dev/null
+# Hey, Emacs, this is -*- perl -*-
+## -----------------------------------------------------------------------
+##
+## Copyright 1998 H. Peter Anvin - All Rights Reserved
+##
+## This program is free software; you can redistribute it and/or modify
+## it under the terms of the GNU General Public License as published by
+## the Free Software Foundation, Inc., 675 Mass Ave, Cambridge MA 02139,
+## USA; either version 2 of the License, or (at your option) any later
+## version; incorporated herein by reference.
+##
+## -----------------------------------------------------------------------
+#
+# SYSLINUX install script for use in a Linux environment
+#
+
+#
+# 1. Find out a location where we can mount the device
+#
+
+if ( getuid() == 0 ) {
+ $tmp = 0;
+ while ( -e "/tmp/mnt.$$.$tmp" ) { $tmp++; }
+ $mntdir = "/tmp/mnt.$$.$tmp";
+ mkdir($mntdir, 0700);
+} else {
+ # Search fstab for device
+}
+