svn commit: r418114 - in head/sysutils: . uefi-edk2-bhyve
Roman Bogorodskiy
novel at FreeBSD.org
Tue Jul 5 23:26:54 UTC 2016
Author: novel
Date: Tue Jul 5 23:26:52 2016
New Revision: 418114
URL: https://svnweb.freebsd.org/changeset/ports/418114
Log:
Add uefi-edk2-bhyve 20160704, UEFI-EDK2 firmware for bhyve.
PR: 210719
Submitted by: fabian.freyer at physik.tu-berlin.de
Added:
head/sysutils/uefi-edk2-bhyve/
head/sysutils/uefi-edk2-bhyve/Makefile (contents, props changed)
head/sysutils/uefi-edk2-bhyve/distinfo (contents, props changed)
head/sysutils/uefi-edk2-bhyve/pkg-descr (contents, props changed)
Modified:
head/sysutils/Makefile
Modified: head/sysutils/Makefile
==============================================================================
--- head/sysutils/Makefile Tue Jul 5 21:13:30 2016 (r418113)
+++ head/sysutils/Makefile Tue Jul 5 23:26:52 2016 (r418114)
@@ -1104,6 +1104,7 @@
SUBDIR += ucspi-tcp
SUBDIR += ucspi-unix
SUBDIR += udfclient
+ SUBDIR += uefi-edk2-bhyve
SUBDIR += ufs_copy
SUBDIR += uhidd
SUBDIR += uif2iso
Added: head/sysutils/uefi-edk2-bhyve/Makefile
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/sysutils/uefi-edk2-bhyve/Makefile Tue Jul 5 23:26:52 2016 (r418114)
@@ -0,0 +1,80 @@
+# $FreeBSD$
+
+PORTNAME= uefi-edk2-bhyve
+PORTVERSION= 20160704
+CATEGORIES= sysutils
+
+MAINTAINER= fabian.freyer at physik.tu-berlin.de
+COMMENT= UEFI-EDK2 firmware for bhyve
+
+LICENSE= BSD2CLAUSE
+
+BUILD_DEPENDS= bash:shells/bash \
+ gcc48:lang/gcc48 \
+ nasm:devel/nasm \
+ ${PYTHON_LIBDIR}/lib-dynload/_sqlite3.so:databases/py-sqlite3
+
+USES= gmake \
+ python:build
+USE_GITHUB= yes
+GH_ACCOUNT= freebsd
+GH_PROJECT= uefi-edk2
+GH_TAGNAME= a36132939e259df79b16699c03c6f1d63c7454b9
+
+PLIST_FILES= ${PREFIX}/share/uefi-firmwares/BHYVE_UEFI.fd
+
+ONLY_FOR_ARCHS= amd64
+
+OPTIONS_DEFINE= CSM DEBUG
+OPTIONS_DEFAULT=CSM
+CSM_DESC= Build with Compatibility Support Module (Legacy Boot)
+CSM_VARS= build_args+=-DCSM_ENABLE=TRUE
+
+DEBUG_VARS= uefi_target=DEBUG
+DEBUG_VARS_OFF= uefi_target=RELEASE
+
+MAKE_ARGS+= AS=${LOCALBASE}/bin/as \
+ AR=${LOCALBASE}/bin/ar \
+ LD=${LOCALBASE}/bin/ld \
+ OBJCOPY=${LOCALBASE}/bin/objcopy \
+ CC=${LOCALBASE}/bin/gcc48 \
+ CXX=${LOCALBASE}/bin/g++48
+
+BUILD_ARGS=-DDEBUG_ON_SERIAL_PORT=TRUE -D FD_SIZE_2MB
+
+.include <bsd.port.options.mk>
+
+post-extract:
+ @${REINPLACE_CMD} -e 's|python|${PYTHON_CMD}|' ${WRKSRC}/BaseTools/Tests/GNUmakefile \
+ ${WRKSRC}/BaseTools/BinWrappers/PosixLike/*
+
+do-build:
+ unset ARCH; unset MAKEFLAGS; ${MAKE_CMD} ${MAKE_ARGS} -C ${BUILD_WRKSRC}/BaseTools
+ ${MKDIR} ${BUILD_WRKSRC}/Build;
+ ${LN} -sf ${LOCALBASE}/bin/gcc48 ${BUILD_WRKSRC}/Build/gcc
+ ${LN} -sf ${LOCALBASE}/bin/ld ${BUILD_WRKSRC}/Build/ld
+ ${LN} -sf ${LOCALBASE}/bin/gmake ${BUILD_WRKSRC}/Build/make
+ ${LN} -sf ${LOCALBASE}/bin/ar ${BUILD_WRKSRC}/Build/ar
+ ${LN} -sf ${LOCALBASE}/bin/objcopy ${BUILD_WRKSRC}/Build/objcopy
+ ${LN} -sf ${LOCALBASE}/bin/nasm ${BUILD_WRKSRC}/Build/nasm
+.if ${PORT_OPTIONS:MCSM}
+ bash -c " \
+ cd ${BUILD_WRKSRC}; \
+ source edksetup.sh;\
+ unset ARCH; unset MAKEFLAGS; \
+ ${MAKE_CMD} ${MAKE_ARGS} GCC48_BIN=${BUILD_WRKSRC}/Build/ -C ${BUILD_WRKSRC}/BhyvePkg/Csm/BhyveCsm16/"
+.endif
+ bash -c " \
+ cd ${BUILD_WRKSRC}; \
+ source edksetup.sh;\
+ unset ARCH; unset MAKEFLAGS; \
+ export GCC48_BIN=${BUILD_WRKSRC}/Build/; \
+ build -t GCC48 -a X64 -b ${UEFI_TARGET} -p BhyvePkg/BhyvePkgX64.dsc ${BUILD_ARGS} \
+ "
+
+do-install:
+ ${MKDIR} ${STAGEDIR}${PREFIX}/share/uefi-firmwares/
+ ${INSTALL} ${BUILD_WRKSRC}/Build/BhyveX64/${UEFI_TARGET}_GCC48/FV/BHYVE.fd \
+ ${STAGEDIR}${PREFIX}/share/uefi-firmwares/BHYVE_UEFI.fd
+
+.include <bsd.port.mk>
Added: head/sysutils/uefi-edk2-bhyve/distinfo
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/sysutils/uefi-edk2-bhyve/distinfo Tue Jul 5 23:26:52 2016 (r418114)
@@ -0,0 +1,3 @@
+TIMESTAMP = 1467621762
+SHA256 (freebsd-uefi-edk2-20160704-a36132939e259df79b16699c03c6f1d63c7454b9_GH0.tar.gz) = 4a98c17a5ff3eb7d631feb6b3e32b019218f85add2a9cfda7dcbc084b2ca808b
+SIZE (freebsd-uefi-edk2-20160704-a36132939e259df79b16699c03c6f1d63c7454b9_GH0.tar.gz) = 31009361
Added: head/sysutils/uefi-edk2-bhyve/pkg-descr
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/sysutils/uefi-edk2-bhyve/pkg-descr Tue Jul 5 23:26:52 2016 (r418114)
@@ -0,0 +1,3 @@
+UEFI-EDK2 firmware for bhyve.
+
+WWW: https://github.com/freebsd/uefi-edk2/tree/bhyve/UDK2014.SP1
More information about the svn-ports-all
mailing list