Move ufsread.c

Move ufsread.c from sys/boot/common (which used to be all the common
files for /boot/loader, but grew to be all the common files for
sys/boot, but that's now sys/boot/libsa's job) to sys/boot/libsa.

Sponsored by: Netflix
This commit is contained in:
Warner Losh 2017-10-12 14:57:05 +00:00
parent cd955ec800
commit 9576e1ee54
5 changed files with 9 additions and 6 deletions

View File

@ -2,7 +2,7 @@
MAN=
.include <src.opts.mk>
.include "../Makefile.inc"
MK_SSP= no
@ -120,7 +120,7 @@ boot1.efi: ${PROG}
-j .rela.dyn -j .reloc -j .eh_frame \
--output-target=${EFI_TARGET} ${.ALLSRC} ${.TARGET}
boot1.o: ${.CURDIR}/../../common/ufsread.c
boot1.o: ${SASRC}/ufsread.c
# The following inserts our objects into a template FAT file system
# created by generate-fat.sh

View File

@ -78,7 +78,7 @@ gptboot.bin: gptboot.out
gptboot.out: ${BTXCRT} gptboot.o sio.o crc32.o drv.o cons.o util.o ${OPENCRYPTO_XTS}
${LD} ${LD_FLAGS} -Ttext ${ORG2} -o ${.TARGET} ${.ALLSRC} ${LIBGELIBOOT} ${LIBSA32}
gptboot.o: ${.CURDIR}/../../common/ufsread.c
gptboot.o: ${SASRC}/ufsread.c
.if ${MACHINE_CPUARCH} == "amd64"
beforedepend gptboot.o: machine

View File

@ -17,7 +17,8 @@ CFLAGS= -ffreestanding -msoft-float \
-D_STANDALONE
LDFLAGS=-nostdlib -static -Wl,-N
.include "${.CURDIR}/../Makefile.inc"
.include "../Makefile.inc"
.PATH: ${.CURDIR}/../../../libkern ${.CURDIR}/../../../../lib/libc/powerpc/gen ${.CURDIR}
# The following inserts out objects into a template HFS
@ -36,7 +37,7 @@ boot1.hfs: boot1.elf bootinfo.txt
CLEANFILES= boot1.hfs
boot1.o: ${.CURDIR}/../../common/ufsread.c
boot1.o: ${SASRC}/ufsread.c
.include <bsd.prog.mk>

View File

@ -1,5 +1,7 @@
# $FreeBSD$
.include "../Makefile.inc"
PROG= boot1.elf
INTERNALPROG=
MAN=
@ -25,6 +27,6 @@ ${FILES}: boot1.aout
boot1.aout: boot1.elf
elf2aout -o ${.TARGET} ${.ALLSRC}
boot1.o: ${.CURDIR}/../../common/ufsread.c
boot1.o: ${SASRC}/ufsread.c
.include <bsd.prog.mk>