Skip to content

Commit

Permalink
sysutils/edk2: Rename xen flavor to xen_x64
Browse files Browse the repository at this point in the history
We might want to have other flavor of this for other xen
arches at one point.

Reviewed by:	royger
Differential Revision:	https://reviews.freebsd.org/D30278
  • Loading branch information
evadot committed May 18, 2021
1 parent e22d7fa commit 91fcb7a
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
1 change: 1 addition & 0 deletions MOVED
Original file line number Diff line number Diff line change
Expand Up @@ -16334,3 +16334,4 @@ net-mgmt/unifi-devel|net-mgmt/unifi6|2021-05-16|Has expired: Use net-mgmt/unifi6
print/rubygem-pdf-core07|print/rubygem-pdf-core|2021-05-16|Obsoleted. Use print/rubygem-pdf-core instead
security/bitwarden_rs|security/vaultwarden|2021-05-16|Project was renamed
sysutils/kdiskmark|benchmarks/kdiskmark|2021-05-18|Moved to a more appropriate category
sysutils/edk2@xen|sysutils/edk2@xen_x64|2021-05-18|Add Xen arch to the flavor name to be futur-proof
6 changes: 3 additions & 3 deletions sysutils/edk2/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ ONLY_FOR_ARCHS= aarch64 amd64
ONLY_FOR_ARCHS_REASON= This port only provides firmware for aarch64 and amd64 machine

PKGNAMESUFFIX= -${FLAVOR:C/_/-/g}
FLAVORS= macchiatobin rpi3 rpi4 xen
FLAVORS= macchiatobin rpi3 rpi4 xen_x64
FLAVOR?= macchiatobin

USES= gmake python:3.7+,build
Expand Down Expand Up @@ -71,13 +71,13 @@ PLAT_RESULT= RPi4/${PLAT_TARGET}_GCC5/FV/RPI_EFI.fd
PLAT_FILENAME= RPI_EFI.fd
.endif

.if ${FLAVOR} == xen
.if ${FLAVOR} == xen_x64
PLAT= xen
PLAT_ARCH= X64
PLAT_TARGET= RELEASE
PLATFILE= OvmfPkg/OvmfXen.dsc
PLAT_RESULT= OvmfXen/${PLAT_TARGET}_GCC5/FV/OVMF.fd
PLAT_FILENAME= XEN_EFI.fd
PLAT_FILENAME= XEN_X64_EFI.fd
.endif

PLIST_FILES= ${PREFIX}/share/${PORTNAME}-${PLAT}/${PLAT_FILENAME}
Expand Down
6 changes: 3 additions & 3 deletions sysutils/xen-tools/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ LIB_DEPENDS= libyajl.so:devel/yajl \
libargp.so:devel/argp-standalone \
libxml2.so:textproc/libxml2
BUILD_DEPENDS= seabios>0:misc/seabios \
${LOCALBASE}/share/edk2-xen/XEN_EFI.fd:sysutils/edk2@xen
${LOCALBASE}/share/edk2-xen/XEN_X64_EFI.fd:sysutils/edk2@xen_x64
RUN_DEPENDS= seabios>0:misc/seabios \
${LOCALBASE}/share/edk2-xen/XEN_EFI.fd:sysutils/edk2@xen
${LOCALBASE}/share/edk2-xen/XEN_X64_EFI.fd:sysutils/edk2@xen_x64

OPTIONS_DEFINE= DOCS SPICE
OPTIONS_DEFAULT= DOCS
Expand All @@ -45,7 +45,7 @@ MAKE_ARGS= clang=y ARCH=x86_64
BINARY_ALIAS= python3=${PYTHON_CMD}

CONFIGURE_ARGS+= --with-system-seabios=${LOCALBASE}/share/seabios/bios.bin \
--with-system-ovmf=${LOCALBASE}/share/edk2-xen/XEN_EFI.fd \
--with-system-ovmf=${LOCALBASE}/share/edk2-xen/XEN_X64_EFI.fd \
--mandir=${MANPREFIX}/man

SHEBANG_FILES= tools/misc/xencov_split \
Expand Down

0 comments on commit 91fcb7a

Please sign in to comment.