Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 12 Jan 2018 17:21:48 +0000 (UTC)
From:      Warner Losh <imp@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r327881 - head/stand/efi/boot1
Message-ID:  <201801121721.w0CHLmC2046188@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: imp
Date: Fri Jan 12 17:21:48 2018
New Revision: 327881
URL: https://svnweb.freebsd.org/changeset/base/327881

Log:
  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

Modified:
  head/stand/efi/boot1/Makefile

Modified: head/stand/efi/boot1/Makefile
==============================================================================
--- head/stand/efi/boot1/Makefile	Fri Jan 12 16:28:51 2018	(r327880)
+++ head/stand/efi/boot1/Makefile	Fri Jan 12 17:21:48 2018	(r327881)
@@ -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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201801121721.w0CHLmC2046188>