6 NEWVERSWHAT= "Open Firmware boot block" ${MACHINE_ARCH}
11 SRCS= boot1.c ashldi3.c syncicache.c
15 CFLAGS= -ffreestanding -msoft-float \
16 -I${.CURDIR}/../../common -I${.CURDIR}/../../../ \
18 LDFLAGS=-nostdlib -static -Wl,-N
20 .include "${.CURDIR}/../Makefile.inc"
21 .PATH: ${.CURDIR}/../../../libkern ${.CURDIR}/../../../../lib/libc/powerpc/gen ${.CURDIR}
23 # The following inserts out objects into a template HFS
24 # created by generate-hfs.sh
26 .include "${.CURDIR}/Makefile.hfs"
28 boot1.hfs: boot1.elf bootinfo.txt
30 uudecode ${.CURDIR}/hfs.tmpl.bz2.uu
31 mv hfs.tmpl.bz2 ${.TARGET}.bz2
32 bzip2 -f -d ${.TARGET}.bz2
33 dd if=boot1.elf of=${.TARGET} seek=${BOOT1_OFFSET} conv=notrunc
34 dd if=${.CURDIR}/bootinfo.txt of=${.TARGET} seek=${BOOTINFO_OFFSET} \
39 boot1.o: ${.CURDIR}/../../common/ufsread.c
41 .include <bsd.prog.mk>