End source directories with SRC rather than a hodgepodge of names
BOOTDIR->BOOTSRC FICLDIR->FICLSRC LDR_MI->LDRSRC This matches the patterns used in the rest of the system a bit vetter. Suggested by: rgrimes@ Sponsored by: Netflix
This commit is contained in:
parent
392c874409
commit
cb3ee5c694
@ -53,7 +53,7 @@ OBJS+= ${SRCS:N*.h:R:S/$/.o/g}
|
||||
|
||||
loader.help: help.common help.uboot ${.CURDIR}/../../fdt/help.fdt
|
||||
cat ${.ALLSRC} | \
|
||||
awk -f ${LDR_MI}/merge_help.awk > ${.TARGET}
|
||||
awk -f ${LDRSRC}/merge_help.awk > ${.TARGET}
|
||||
|
||||
ldscript.abs:
|
||||
echo "UBLDR_LOADADDR = ${UBLDR_LOADADDR};" >${.TARGET}
|
||||
|
@ -5,13 +5,13 @@
|
||||
.if !defined(__BOOT_DEFS_MK__)
|
||||
__BOOT_DEFS_MK__=${MFILE}
|
||||
|
||||
BOOTDIR= ${SRCTOP}/sys/boot
|
||||
FICLDIR= ${BOOTDIR}/ficl
|
||||
LDR_MI= ${BOOTDIR}/common
|
||||
SASRC= ${BOOTDIR}/libsa
|
||||
BOOTSRC= ${SRCTOP}/sys/boot
|
||||
FDTSRC= ${BOOTSRC}/fdt
|
||||
FICLSRC= ${BOOTSRC}/ficl
|
||||
LDRSRC= ${BOOTSRC}/common
|
||||
SASRC= ${BOOTSRC}/libsa
|
||||
SYSDIR= ${SRCTOP}/sys
|
||||
FDTSRC= ${BOOTDIR}/fdt
|
||||
UBOOTSRC= ${BOOTDIR}/uboot
|
||||
UBOOTSRC= ${BOOTSRC}/uboot
|
||||
|
||||
BOOTOBJ= ${OBJTOP}/sys/boot
|
||||
|
||||
|
@ -12,7 +12,7 @@ FICL_CPUARCH= mips64
|
||||
FICL_CPUARCH= ${MACHINE_CPUARCH}
|
||||
.endif
|
||||
|
||||
.PATH: ${FICLDIR} ${FICLDIR}/${FICL_CPUARCH}
|
||||
.PATH: ${FICLSRC} ${FICLSRC}/${FICL_CPUARCH}
|
||||
|
||||
.if ${MACHINE_CPUARCH} == "amd64"
|
||||
.if defined(FICL32)
|
||||
@ -26,7 +26,7 @@ CFLAGS+= -fPIC
|
||||
CFLAGS+= -m32 -mcpu=powerpc -I.
|
||||
.endif
|
||||
|
||||
CFLAGS+= -I${FICLDIR} -I${FICLDIR}/${FICL_CPUARCH} -I${LDR_MI}
|
||||
CFLAGS+= -I${FICLSRC} -I${FICLSRC}/${FICL_CPUARCH} -I${LDRSRC}
|
||||
CFLAGS+= -DBOOT_FORTH
|
||||
CFLAGS+= -DBF_DICTSIZE=15000
|
||||
|
||||
|
@ -28,12 +28,12 @@ INTERNALLIB=
|
||||
.endif
|
||||
|
||||
# Standard softwords
|
||||
.PATH: ${FICLDIR}/softwords
|
||||
.PATH: ${FICLSRC}/softwords
|
||||
SOFTWORDS= softcore.fr jhlocal.fr marker.fr freebsd.fr ficllocal.fr \
|
||||
ifbrack.fr
|
||||
# Optional OO extension softwords
|
||||
#SOFTWORDS+= oo.fr classes.fr
|
||||
|
||||
softcore.c: ${SOFTWORDS} softcore.awk
|
||||
(cd ${FICLDIR}/softwords; cat ${SOFTWORDS} \
|
||||
(cd ${FICLSRC}/softwords; cat ${SOFTWORDS} \
|
||||
| awk -f softcore.awk -v datestamp="`LC_ALL=C date`") > ${.TARGET}
|
||||
|
@ -43,7 +43,7 @@ CFLAGS.gcc+= --param max-inline-insns-single=100
|
||||
|
||||
.if ${LOADER_GELI_SUPPORT:Uyes} == "yes"
|
||||
CFLAGS+= -DLOADER_GELI_SUPPORT
|
||||
CFLAGS+= -I${BOOTDIR}/geli
|
||||
CFLAGS+= -I${BOOTSRC}/geli
|
||||
CFLAGS+= -I${.CURDIR}/../../..
|
||||
LIBGELIBOOT= ${BOOTOBJ}/geli/libgeliboot.a
|
||||
.PATH: ${.CURDIR}/../../../opencrypto
|
||||
|
@ -50,7 +50,7 @@ CFLAGS+= -DSKEIN_LOOP=111
|
||||
|
||||
.if ${LOADER_GELI_SUPPORT:Uyes} == "yes"
|
||||
CFLAGS+= -DLOADER_GELI_SUPPORT
|
||||
CFLAGS+= -I${BOOTDIR}/geli
|
||||
CFLAGS+= -I${BOOTSRC}/geli
|
||||
LIBGELIBOOT= ${BOOTOBJ}/geli/libgeliboot.a
|
||||
.PATH: ${.CURDIR}/../../../opencrypto
|
||||
OPENCRYPTO_XTS= xform_aes_xts.o
|
||||
|
@ -28,7 +28,7 @@ CFLAGS+= -DDISK_DEBUG
|
||||
.if ${LOADER_GELI_SUPPORT:Uyes} == "yes"
|
||||
# Decrypt encrypted drives
|
||||
CFLAGS+= -DLOADER_GELI_SUPPORT
|
||||
CFLAGS+= -I${BOOTDIR}/geli
|
||||
CFLAGS+= -I${BOOTSRC}/geli
|
||||
.endif
|
||||
|
||||
.if !defined(BOOT_HIDE_SERIAL_NUMBERS)
|
||||
|
@ -42,7 +42,7 @@ HAVE_ISABUS= yes
|
||||
|
||||
.if ${LOADER_GELI_SUPPORT:Uyes} == "yes"
|
||||
CFLAGS+= -DLOADER_GELI_SUPPORT
|
||||
CFLAGS+= -I${BOOTDIR}/geli
|
||||
CFLAGS+= -I${BOOTSRC}/geli
|
||||
LIBGELIBOOT= ${BOOTOBJ}/geli/libgeliboot.a
|
||||
.PATH: ${.CURDIR}/../../../opencrypto
|
||||
SRCS+= xform_aes_xts.c
|
||||
@ -80,7 +80,7 @@ ${LOADER}.bin: ${LOADER}.sym
|
||||
strip -R .comment -R .note -o ${.TARGET} ${.ALLSRC}
|
||||
|
||||
loader.help: help.common help.i386
|
||||
cat ${.ALLSRC} | awk -f ${LDR_MI}/merge_help.awk > ${.TARGET}
|
||||
cat ${.ALLSRC} | awk -f ${LDRSRC}/merge_help.awk > ${.TARGET}
|
||||
|
||||
FILES= ${LOADER}
|
||||
# XXX INSTALLFLAGS_loader= -b
|
||||
|
@ -2,9 +2,9 @@
|
||||
|
||||
.include "defs.mk"
|
||||
|
||||
.PATH: ${LDR_MI} ${BOOTDIR}/libsa
|
||||
.PATH: ${LDRSRC} ${BOOTSRC}/libsa
|
||||
|
||||
CFLAGS+=-I${LDR_MI}
|
||||
CFLAGS+=-I${LDRSRC}
|
||||
|
||||
SRCS+= boot.c commands.c console.c devopen.c interp.c
|
||||
SRCS+= interp_backslash.c interp_parse.c ls.c misc.c
|
||||
@ -58,7 +58,7 @@ SRCS+= pnp.c
|
||||
# Forth interpreter
|
||||
.if ${MK_FORTH} != "no"
|
||||
SRCS+= interp_forth.c
|
||||
.include "${BOOTDIR}/ficl.mk"
|
||||
.include "${BOOTSRC}/ficl.mk"
|
||||
.endif
|
||||
|
||||
.if defined(BOOT_PROMPT_123)
|
||||
@ -74,6 +74,6 @@ VERSION_FILE?= ${.CURDIR}/version
|
||||
.if ${MK_REPRODUCIBLE_BUILD} != no
|
||||
REPRO_FLAG= -r
|
||||
.endif
|
||||
vers.c: ${LDR_MI}/newvers.sh ${VERSION_FILE}
|
||||
sh ${LDR_MI}/newvers.sh ${REPRO_FLAG} ${VERSION_FILE} \
|
||||
vers.c: ${LDRSRC}/newvers.sh ${VERSION_FILE}
|
||||
sh ${LDRSRC}/newvers.sh ${REPRO_FLAG} ${VERSION_FILE} \
|
||||
${NEWVERSWHAT}
|
||||
|
@ -96,7 +96,7 @@ LDADD= ${LIBFICL} ${LIBSA}
|
||||
|
||||
loader.help: help.common help.mips
|
||||
cat ${.ALLSRC} | \
|
||||
awk -f ${LDR_MI}/merge_help.awk > ${.TARGET}
|
||||
awk -f ${LDRSRC}/merge_help.awk > ${.TARGET}
|
||||
|
||||
.PATH: ${.CURDIR}/../../../forth
|
||||
.include "${.CURDIR}/../../../forth/Makefile.inc"
|
||||
|
@ -45,7 +45,7 @@ OBJS+= ${SRCS:N*.h:R:S/$/.o/g}
|
||||
|
||||
loader.help: help.common help.uboot ${.CURDIR}/../../fdt/help.fdt
|
||||
cat ${.ALLSRC} | \
|
||||
awk -f ${LDR_MI}/merge_help.awk > ${.TARGET}
|
||||
awk -f ${LDRSRC}/merge_help.awk > ${.TARGET}
|
||||
|
||||
ldscript.abs:
|
||||
echo "UBLDR_LOADADDR = ${UBLDR_LOADADDR};" >${.TARGET}
|
||||
|
@ -62,7 +62,7 @@ LDADD= ${LIBFICL} ${LIBOFW} ${LIBFDT} ${LIBSA32}
|
||||
|
||||
loader.help: help.common help.kboot ${.CURDIR}/../../fdt/help.fdt
|
||||
cat ${.ALLSRC} | \
|
||||
awk -f ${LDR_MI}/merge_help.awk > ${.TARGET}
|
||||
awk -f ${LDRSRC}/merge_help.awk > ${.TARGET}
|
||||
|
||||
.PATH: ${.CURDIR}/../../forth
|
||||
.include "${.CURDIR}/../../forth/Makefile.inc"
|
||||
|
@ -62,7 +62,7 @@ LDADD= ${LIBFICL} ${LIBOFW} ${LIBFDT} ${LIBSA32}
|
||||
|
||||
loader.help: help.common help.ofw ${.CURDIR}/../../fdt/help.fdt
|
||||
cat ${.ALLSRC} | \
|
||||
awk -f ${LDR_MI}/merge_help.awk > ${.TARGET}
|
||||
awk -f ${LDRSRC}/merge_help.awk > ${.TARGET}
|
||||
|
||||
.PATH: ${.CURDIR}/../../forth
|
||||
.include "${.CURDIR}/../../forth/Makefile.inc"
|
||||
|
@ -63,7 +63,7 @@ font.h:
|
||||
|
||||
loader.help: help.common help.ps3 ${.CURDIR}/../../fdt/help.fdt
|
||||
cat ${.ALLSRC} | \
|
||||
awk -f ${LDR_MI}/merge_help.awk > ${.TARGET}
|
||||
awk -f ${LDRSRC}/merge_help.awk > ${.TARGET}
|
||||
|
||||
.PATH: ${.CURDIR}/../../forth
|
||||
.include "${.CURDIR}/../../forth/Makefile.inc"
|
||||
|
@ -41,7 +41,7 @@ LDADD= ${LIBFICL} ${LIBUBOOT} ${LIBFDT} ${LIBUBOOT_FDT} ${LIBSA32}
|
||||
|
||||
loader.help: help.common help.uboot ${.CURDIR}/../../fdt/help.fdt
|
||||
cat ${.ALLSRC} | \
|
||||
awk -f ${LDR_MI}/merge_help.awk > ${.TARGET}
|
||||
awk -f ${LDRSRC}/merge_help.awk > ${.TARGET}
|
||||
|
||||
.PATH: ${.CURDIR}/../../forth
|
||||
FILES= loader.help
|
||||
|
@ -55,7 +55,7 @@ LDADD= ${LIBFICL} ${LIBZFSBOOT} ${LIBOFW} ${LIBSA}
|
||||
|
||||
loader.help: help.common help.sparc64
|
||||
cat ${.ALLSRC} | \
|
||||
awk -f ${LDR_MI}/merge_help.awk > ${.TARGET}
|
||||
awk -f ${LDRSRC}/merge_help.awk > ${.TARGET}
|
||||
|
||||
.PATH: ${.CURDIR}/../../forth
|
||||
.include "${.CURDIR}/../../forth/Makefile.inc"
|
||||
|
Loading…
x
Reference in New Issue
Block a user