445a2b570e
As the in-tree GCC does not support __attribute__((ms_abi)) EFI can only be built with Clang. The EFI loader and boot1 validated this, but unused libefi was still built causing issues under GCC after warnings where enabled by r293724. Disable building all of EFI when the selected compiler is GCC. MFC after: 2 weeks X-MFC-With: r293268 Sponsored by: Multiplay
24 lines
452 B
Makefile
24 lines
452 B
Makefile
# $FreeBSD$
|
|
|
|
.include <src.opts.mk>
|
|
|
|
# In-tree GCC does not support __attribute__((ms_abi)).
|
|
.if ${COMPILER_TYPE} != "gcc"
|
|
|
|
.if ${MACHINE_CPUARCH} == "aarch64" || ${MACHINE_CPUARCH} == "arm"
|
|
.if ${MK_FDT} != "no"
|
|
SUBDIR+= fdt
|
|
.endif
|
|
.endif
|
|
|
|
.if ${MACHINE_CPUARCH} == "aarch64" || \
|
|
${MACHINE_CPUARCH} == "amd64" || \
|
|
${MACHINE_CPUARCH} == "arm"
|
|
SUBDIR+= libefi loader boot1
|
|
.endif
|
|
|
|
.endif # ${COMPILER_TYPE} != "gcc"
|
|
|
|
.include <bsd.subdir.mk>
|
|
|