Changeset View
Changeset View
Standalone View
Standalone View
sys/boot/efi/boot1/Makefile
Show First 20 Lines • Show All 113 Lines • ▼ Show 20 Lines | ${OBJCOPY} -j .peheader -j .text -j .sdata -j .data \ | ||||
--output-target=${EFI_TARGET} ${.ALLSRC} ${.TARGET} | --output-target=${EFI_TARGET} ${.ALLSRC} ${.TARGET} | ||||
boot1.o: ${.CURDIR}/../../common/ufsread.c | boot1.o: ${.CURDIR}/../../common/ufsread.c | ||||
# The following inserts our objects into a template FAT file system | # The following inserts our objects into a template FAT file system | ||||
# created by generate-fat.sh | # created by generate-fat.sh | ||||
.include "${.CURDIR}/Makefile.fat" | .include "${.CURDIR}/Makefile.fat" | ||||
BOOT1_MAXSIZE?= 131072 | BOOT1_MAXSIZE?= 524288 | ||||
emaste: This is gone as of rS323436. | |||||
boot1.efifat: boot1.efi | boot1.efifat: boot1.efi | ||||
@set -- `ls -l ${.ALLSRC}`; \ | @set -- `ls -l ${.ALLSRC}`; \ | ||||
x=$$(($$5-${BOOT1_MAXSIZE})); \ | x=$$(($$5-${BOOT1_MAXSIZE})); \ | ||||
if [ $$x -ge 0 ]; then \ | if [ $$x -ge 0 ]; then \ | ||||
echo "boot1 $$x bytes too large; regenerate FAT templates?" >&2 ;\ | echo "boot1 $$x bytes too large; regenerate FAT templates?" >&2 ;\ | ||||
exit 1; \ | exit 1; \ | ||||
fi | fi | ||||
echo ${.OBJDIR} | echo ${.OBJDIR} | ||||
uudecode ${.CURDIR}/fat-${MACHINE}.tmpl.bz2.uu | unxz -d -f -c ${.CURDIR}/fat-${MACHINE}.tmpl.xz > ${.TARGET} | ||||
emasteUnsubmitted Not Done Inline ActionsI ended up writing a similar patch (I forgot about this one) and used xz -d emaste: I ended up writing a similar patch (I forgot about this one) and used `xz -d`
I also think -f… | |||||
mv fat-${MACHINE}.tmpl.bz2 ${.TARGET}.bz2 | |||||
bzip2 -f -d ${.TARGET}.bz2 | |||||
${DD} if=${.ALLSRC} of=${.TARGET} seek=${BOOT1_OFFSET} conv=notrunc | ${DD} if=${.ALLSRC} of=${.TARGET} seek=${BOOT1_OFFSET} conv=notrunc | ||||
CLEANFILES= boot1.efi boot1.efifat | CLEANFILES= boot1.efi boot1.efifat | ||||
.include <bsd.prog.mk> | .include <bsd.prog.mk> | ||||
beforedepend ${OBJS}: machine | beforedepend ${OBJS}: machine | ||||
Show All 12 Lines |
This is gone as of rS323436.