mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-04 09:09:56 +00:00
eda28feb2e
When VECTX is enabled as a kernel option and non-EFI loaders are built, many reads will fail due to the mis-match of whether LOADER_VERIEXEC_VECTX or not in readin.h. Source that includes bootstrap.h must ensure the kernel option agrees with the compile time CFLAGS in the various make related files. Submitted by: bret_ketchum@dell.com (original revision) Reviewed by: sjg, bdrewery, dab, bret_ketchum@dell.com MFC after: 1 week Sponsored by: Dell EMC Isilon Differential Revision: https://reviews.freebsd.org/D29993
21 lines
437 B
Makefile
21 lines
437 B
Makefile
# $FreeBSD$
|
|
|
|
# Common flags to build FICL related files
|
|
|
|
.if ${MACHINE_CPUARCH} == "amd64" && ${DO32:U0} == 1
|
|
FICL_CPUARCH= i386
|
|
.elif ${MACHINE_ARCH:Mmips64*} != ""
|
|
FICL_CPUARCH= mips64
|
|
.else
|
|
FICL_CPUARCH= ${MACHINE_CPUARCH}
|
|
.endif
|
|
|
|
.if ${MACHINE_CPUARCH} == "amd64" && ${DO32:U0} == 0
|
|
CFLAGS+= -fPIC
|
|
.endif
|
|
|
|
CFLAGS+= -I${FICLSRC} -I${FICLSRC}/${FICL_CPUARCH} -I${LDRSRC}
|
|
CFLAGS+= -DBF_DICTSIZE=30000
|
|
|
|
.include "${BOOTSRC}/veriexec.mk"
|