hfs-boot/Makefile
Kelvin Sherlock e02675057f Support for variable block size (ie, volumes > 32 MB)
Squashed commit of the following:

commit 44a6544242
Author: Kelvin Sherlock <ksherlock@gmail.com>
Date:   Wed Aug 11 22:10:11 2021 -0400

    improved 32-bit (well, smartport is 24-bit) block support

commit 7fc041289f
Author: Kelvin Sherlock <ksherlock@gmail.com>
Date:   Wed Aug 4 23:49:15 2021 -0400

    convert the extent blocks into 32-bit absolute blocks when loading.
    Currently the block comparisons are still 16-bit, though.

commit 0fabe65aca
Author: Kelvin Sherlock <ksherlock@gmail.com>
Date:   Tue Aug 3 20:13:27 2021 -0400

    move stack adjustment code to take effect from the callback routines

commit 6da1f9fa3c
Author: Kelvin Sherlock <ksherlock@gmail.com>
Date:   Tue Jul 27 21:31:23 2021 -0400

    re-arrange to avoid relative expression warning

commit dbfe66cc99
Author: Kelvin Sherlock <ksherlock@gmail.com>
Date:   Tue Jul 27 21:31:01 2021 -0400

    use smartport.aii

commit 95aa4d8bd5
Author: Kelvin Sherlock <ksherlock@gmail.com>
Date:   Thu Jul 22 23:58:20 2021 -0400

    large volume support (WIP, untested).
    the general theory is, multiply the extents by the allocation adjustment to get physical block offsets.
    currently, comparisons are still 16-bit though.
2021-08-15 20:45:46 -04:00

40 lines
816 B
Makefile

.PHONY: all
all : bootblock loader
bootblock : bootblock.omf | hfs24.po
mpw makebiniigs -s -org 2048 bootblock.omf -o bootblock
dd bs=512 if=bootblock of=hfs24.po conv=notrunc oseek=0
loader : loader.omf loader.rii | hfs24.po
mpw makebiniigs -s -org 8192 -t \$$bc loader.omf -o loader
mpw reziigs loader.rii -o loader
sh cp-loader.sh
# bootblock.omf : bootblock.obj
# mpw linkiigs bootblock.obj -o bootblock.omf
bootblock.obj : bootblock.aii hfs.aii smartport.aii
# mpw asmiigs bootblock.aii -o bootblock.obj
loader.obj : loader.aii hfs.aii macros.aii
.PHONY: clean
clean:
$(RM) bootblock bootblock.omf bootblock.obj loader loader.omf loader.obj
hfs.po:
mkfs-profuse --fst=hfs --size=800k --name="hfs boot" hfs.po
%.obj : %.aii
mpw asmiigs -l $< -o $@
%.omf : %.obj
mpw linkiigs $< -o $@