1183863Snwhitehorn# $FreeBSD: releng/10.3/sys/boot/powerpc/boot1.chrp/Makefile 276486 2014-12-31 23:25:37Z ngie $ 2183863Snwhitehorn 3255944SbdrewerySSP_CFLAGS= 4183863Snwhitehorn 5183863SnwhitehornPROG= boot1.elf 6183863SnwhitehornNEWVERSWHAT= "Open Firmware boot block" ${MACHINE_ARCH} 7183863SnwhitehornBINDIR?= /boot 8183863SnwhitehornINSTALLFLAGS= -b 9183863Snwhitehorn 10183863SnwhitehornFILES= boot1.hfs 11231810SnwhitehornSRCS= boot1.c ashldi3.c syncicache.c 12183863Snwhitehorn 13276486SngieMAN= 14183863Snwhitehorn 15209920SnwhitehornCFLAGS= -ffreestanding -msoft-float -Os \ 16231810Snwhitehorn -I${.CURDIR}/../../common -I${.CURDIR}/../../../ \ 17231810Snwhitehorn -D_STANDALONE 18183863SnwhitehornLDFLAGS=-nostdlib -static -N 19183863Snwhitehorn 20183863Snwhitehorn.include "${.CURDIR}/../Makefile.inc" 21231810Snwhitehorn.PATH: ${.CURDIR}/../../../libkern ${.CURDIR}/../../../../lib/libc/powerpc/gen ${.CURDIR} 22183863Snwhitehorn 23183863Snwhitehorn# The following inserts out objects into a template HFS 24183863Snwhitehorn# created by generate-hfs.sh 25183863Snwhitehorn 26183863Snwhitehorn.include "${.CURDIR}/Makefile.hfs" 27183863Snwhitehorn 28183863Snwhitehornboot1.hfs: boot1.elf bootinfo.txt 29183863Snwhitehorn echo ${.OBJDIR} 30183863Snwhitehorn uudecode ${.CURDIR}/hfs.tmpl.bz2.uu 31183863Snwhitehorn mv hfs.tmpl.bz2 ${.TARGET}.bz2 32183863Snwhitehorn bzip2 -f -d ${.TARGET}.bz2 33183863Snwhitehorn dd if=boot1.elf of=${.TARGET} seek=${BOOT1_OFFSET} conv=notrunc 34183863Snwhitehorn dd if=${.CURDIR}/bootinfo.txt of=${.TARGET} seek=${BOOTINFO_OFFSET} \ 35183863Snwhitehorn conv=notrunc 36183863Snwhitehorn 37183863SnwhitehornCLEANFILES= boot1.hfs 38183863Snwhitehorn 39183863Snwhitehornboot1.o: ${.CURDIR}/../../common/ufsread.c 40183863Snwhitehorn 41183863Snwhitehorn.include <bsd.prog.mk> 42183863Snwhitehorn 43