Move crc32.c, util.c and gpt.c over to libsa.

Sponsored by: Netflix
This commit is contained in:
Warner Losh 2017-10-12 14:56:54 +00:00
parent 917587f435
commit 6f0970a4c6
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=324554
11 changed files with 13 additions and 8 deletions

View file

@ -1,5 +1,7 @@
# $FreeBSD$
.PATH: ${SRCTOP}/sys/boot/common ${SRCTOP}/sys/boot/libsa
SRCS+= boot.c commands.c console.c devopen.c interp.c
SRCS+= interp_backslash.c interp_parse.c ls.c misc.c
SRCS+= module.c panic.c
@ -30,7 +32,6 @@ SRCS+= dev_net.c
SRCS+= disk.c part.c
CFLAGS+= -DLOADER_DISK_SUPPORT
.if !defined(LOADER_NO_GPT_SUPPORT)
SRCS+= crc32.c
CFLAGS+= -DLOADER_GPT_SUPPORT
.endif
.if !defined(LOADER_NO_MBR_SUPPORT)

View file

@ -1,6 +1,8 @@
# $FreeBSD$
.PATH: ${.CURDIR}/../boot2 ${.CURDIR}/../common ${.CURDIR}/../../common
.include "../Makefile.inc"
.PATH: ${.CURDIR}/../boot2 ${.CURDIR}/../common ${SASRC}
FILES= gptboot
MAN= gptboot.8
@ -20,7 +22,7 @@ GPTBOOT_UFS?= UFS1_AND_UFS2
#GPTBOOT_UFS?= UFS2_ONLY
#GPTBOOT_UFS?= UFS1_ONLY
CFLAGS= -DBOOTPROG=\"gptboot\" \
CFLAGS+=-DBOOTPROG=\"gptboot\" \
-O1 \
-DGPT \
-D${GPTBOOT_UFS} \

View file

@ -1,10 +1,10 @@
# $FreeBSD$
.include <bsd.own.mk>
.include "../Makefile.inc"
.PATH: ${.CURDIR}/../boot2 ${.CURDIR}/../gptboot \
${.CURDIR}/../zfsboot ${.CURDIR}/../common \
${.CURDIR}/../../common ${.CURDIR}/../../../crypto/skein
${.CURDIR}/../../../crypto/skein ${SASRC}
FILES= gptzfsboot
MAN= gptzfsboot.8
@ -19,7 +19,7 @@ REL1= 0x700
ORG1= 0x7c00
ORG2= 0x0
CFLAGS= -DBOOTPROG=\"gptzfsboot\" \
CFLAGS+=-DBOOTPROG=\"gptzfsboot\" \
-O1 \
-DGPT -DZFS -DBOOT2 \
-DSIOPRT=${BOOT_COMCONSOLE_PORT} \

View file

@ -1,7 +1,9 @@
# $FreeBSD$
.include "../Makefile.inc"
.PATH: ${.CURDIR}/../boot2 ${.CURDIR}/../common \
${.CURDIR}/../../common ${.CURDIR}/../../../crypto/skein
${.CURDIR}/../../../crypto/skein ${SASRC}
FILES= zfsboot
MAN= zfsboot.8

View file

@ -8,7 +8,7 @@ LIB= uboot
INTERNALLIB=
WARNS?= 2
SRCS= crc32.c console.c copy.c devicename.c elf_freebsd.c glue.c
SRCS= console.c copy.c devicename.c elf_freebsd.c glue.c
SRCS+= module.c net.c reboot.c time.c
CFLAGS+= -ffreestanding -msoft-float