aboutsummaryrefslogtreecommitdiff
path: root/stand/efi/boot1/Makefile
diff options
context:
space:
mode:
authorWarner Losh <imp@FreeBSD.org>2018-01-12 17:21:48 +0000
committerWarner Losh <imp@FreeBSD.org>2018-01-12 17:21:48 +0000
commit1d28802f0c4fd0f408612890624cc069052d93aa (patch)
tree33110a1c802a304031da7e1cb04054a6b6a664a3 /stand/efi/boot1/Makefile
parent31d05586789c223c2f377f242df7bf26d5fae950 (diff)
downloadsrc-1d28802f0c4fd0f408612890624cc069052d93aa.tar.gz
src-1d28802f0c4fd0f408612890624cc069052d93aa.zip
Allow this file to be included
Use simple "foo" rather than "${.CURDIR}/foo" to include Makefile.fat since the former works when including this Makefile from else where. Also, use full path from ${BOOTSRC} to the FAT templates for similar reasons. It doesn't change anything in base FreeBSD, but allows us to have a custom boot1.efi more easily (though that will be short-lived for us, it may also be helpful for others). Sponsored by: Netflix
Notes
Notes: svn path=/head/; revision=327881
Diffstat (limited to 'stand/efi/boot1/Makefile')
-rw-r--r--stand/efi/boot1/Makefile4
1 files changed, 2 insertions, 2 deletions
diff --git a/stand/efi/boot1/Makefile b/stand/efi/boot1/Makefile
index 7791b78650e8..2acefb348d64 100644
--- a/stand/efi/boot1/Makefile
+++ b/stand/efi/boot1/Makefile
@@ -110,7 +110,7 @@ boot1.efi: ${PROG}
# The following inserts our objects into a template FAT file system
# created by generate-fat.sh
-.include "${.CURDIR}/Makefile.fat"
+.include "Makefile.fat"
boot1.efifat: boot1.efi
@set -- `ls -l ${.ALLSRC}`; \
@@ -120,7 +120,7 @@ boot1.efifat: boot1.efi
exit 1; \
fi
echo ${.OBJDIR}
- xz -d -c ${.CURDIR}/fat-${MACHINE}.tmpl.xz > ${.TARGET}
+ xz -d -c ${BOOTSRC}/efi/boot1/fat-${MACHINE}.tmpl.xz > ${.TARGET}
${DD} if=${.ALLSRC} of=${.TARGET} seek=${BOOT1_OFFSET} conv=notrunc
CLEANFILES+= boot1.efi boot1.efifat