aboutsummaryrefslogtreecommitdiff
path: root/stand/efi
diff options
context:
space:
mode:
authorWarner Losh <imp@FreeBSD.org>2019-06-06 03:07:10 +0000
committerWarner Losh <imp@FreeBSD.org>2019-06-06 03:07:10 +0000
commit175e3aa56ea6c29be1d2535c96f8535a9e7f9bf5 (patch)
treea30a9d267e2ebf3fb80e6320a00cba94b12141fc /stand/efi
parent121d6c186b17ff2cbd55ac0d1fb00b6a39d3c533 (diff)
downloadsrc-175e3aa56ea6c29be1d2535c96f8535a9e7f9bf5.tar.gz
src-175e3aa56ea6c29be1d2535c96f8535a9e7f9bf5.zip
Don't make the efifat thing if NOFAT is defined.
Notes
Notes: svn path=/head/; revision=348722
Diffstat (limited to 'stand/efi')
-rw-r--r--stand/efi/boot1/Makefile4
1 files changed, 4 insertions, 0 deletions
diff --git a/stand/efi/boot1/Makefile b/stand/efi/boot1/Makefile
index cb201a471b8a..97594017f766 100644
--- a/stand/efi/boot1/Makefile
+++ b/stand/efi/boot1/Makefile
@@ -56,8 +56,10 @@ CFLAGS+= -DEFI_DEBUG
.PATH: ${EFISRC}/libefi
CFLAGS+= -I${LDRSRC}
+.ifndef(NOFAT)
FILES= ${BOOT1}.efi ${BOOT1}.efifat
FILESMODE_${BOOT1}.efi= ${BINMODE}
+.endif
LDSCRIPT= ${EFISRC}/loader/arch/${MACHINE}/ldscript.${MACHINE}
LDFLAGS+= -Wl,-T${LDSCRIPT},-Bsymbolic,-znotext -shared
@@ -93,6 +95,7 @@ ${BOOT1}.efi: ${PROG}
-j .rela.dyn -j .reloc -j .eh_frame \
--output-target=${EFI_TARGET} ${.ALLSRC} ${.TARGET}
+.ifndef(NOFAT)
# The following inserts our objects into a template FAT file system
# created by generate-fat.sh
@@ -110,5 +113,6 @@ ${BOOT1}.efifat: ${BOOT1}.efi
${DD} if=${.ALLSRC} of=${.TARGET} seek=${BOOT1_OFFSET} conv=notrunc
CLEANFILES+= ${BOOT1}.efi ${BOOT1}.efifat
+.endif
.include <bsd.prog.mk>