mirror of
https://github.com/ksherlock/host-fst.git
synced 2024-12-21 22:29:22 +00:00
add boot driver option - like the normal driver, but less header?
This commit is contained in:
parent
48d132c910
commit
e890e33f39
12
Makefile
12
Makefile
@ -6,7 +6,7 @@ ASMFLAGS=-case on -l
|
|||||||
LDFLAGS=
|
LDFLAGS=
|
||||||
|
|
||||||
|
|
||||||
all : host.driver host.fst boot.sys
|
all : host.driver boot.driver host.fst boot.sys
|
||||||
|
|
||||||
host.fst : host.fst.o
|
host.fst : host.fst.o
|
||||||
$(LD) -t \$$BD -at \$$0000 $< -o $@
|
$(LD) -t \$$BD -at \$$0000 $< -o $@
|
||||||
@ -18,7 +18,15 @@ host.fst : host.fst.o
|
|||||||
host.driver : host.driver.o
|
host.driver : host.driver.o
|
||||||
$(LD) -t \$$BB -at \$$0101 $< -o $@
|
$(LD) -t \$$BB -at \$$0101 $< -o $@
|
||||||
|
|
||||||
|
boot.driver : boot.driver.o
|
||||||
|
$(LD) -t \$$BB -at \$$0181 $< -o $@
|
||||||
|
|
||||||
|
# -d BootDriver must come after -case on
|
||||||
host.driver.o : host.driver.aii gsos.equ
|
host.driver.o : host.driver.aii gsos.equ
|
||||||
|
boot.driver.o : host.driver.aii gsos.equ
|
||||||
|
$(ASM) $(ASMFLAGS) -d BootDriver $< -o $@
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
host.fst.o : host.fst.aii gsos.equ fst.equ records.equ fst.macros
|
host.fst.o : host.fst.aii gsos.equ fst.equ records.equ fst.macros
|
||||||
|
|
||||||
@ -30,7 +38,7 @@ boot.sys: boot
|
|||||||
|
|
||||||
.PHONY : clean
|
.PHONY : clean
|
||||||
clean :
|
clean :
|
||||||
$(RM) -- host.fst host.driver boot.sys boot *.o
|
$(RM) -- host.fst host.driver boot.driver boot.sys boot *.o
|
||||||
|
|
||||||
%.o : %.aii
|
%.o : %.aii
|
||||||
$(ASM) $(ASMFLAGS) $< -o $@
|
$(ASM) $(ASMFLAGS) $< -o $@
|
||||||
|
1
gsos.equ
1
gsos.equ
@ -10,6 +10,7 @@
|
|||||||
; ` prevents expansion during macro processing.
|
; ` prevents expansion during macro processing.
|
||||||
DEFAULT `DEBUG_S16,0
|
DEFAULT `DEBUG_S16,0
|
||||||
DEFAULT `DebugSymbols,0
|
DEFAULT `DebugSymbols,0
|
||||||
|
DEFAULT `BootDriver,0
|
||||||
|
|
||||||
****************************************************************
|
****************************************************************
|
||||||
*
|
*
|
||||||
|
@ -10,10 +10,11 @@
|
|||||||
|
|
||||||
string asis
|
string asis
|
||||||
header proc
|
header proc
|
||||||
|
if not BootDriver then
|
||||||
dc.w dib-header
|
dc.w dib-header
|
||||||
dc.w 1 ; 1 device
|
dc.w 1 ; 1 device
|
||||||
dc.w 0 ; no config list
|
dc.w 0 ; no config list
|
||||||
|
endif
|
||||||
|
|
||||||
dib dc.l 0 ;Link pointer to next DIB
|
dib dc.l 0 ;Link pointer to next DIB
|
||||||
dc.l entry ;Entry pointer
|
dc.l entry ;Entry pointer
|
||||||
|
Loading…
Reference in New Issue
Block a user