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