Skip to content
Snippets Groups Projects
Commit 4b8ac78c authored by Kyle Evans's avatar Kyle Evans
Browse files

emulators/qemu{,70}: enable for aarch64

Piggy-back off of the work done for powerpc64 to enable aarch64.  ppc64
was untested, though I did sanity check MAKE_ARGS with ARCH forced to
both powerpc64 and powerpc64le.  Both result in ARCH=ppc64, as they did
before.

While we're here, enable ${MAKE_JOBS_NUMBER} support -- the meson build
will carry any -j flag passed to gmake on to ninja, otherwise it will
default to -j1.

Approved by:	bofh (maintainer)
Sponsored by:	NetApp, Inc.
Sponsored by:	Klara, Inc.
Differential Revision:	https://reviews.freebsd.org/D37234
parent 20472991
No related branches found
No related tags found
No related merge requests found
......@@ -11,7 +11,7 @@ WWW= https://wiki.qemu.org/Main_Page
LICENSE= GPLv2
.if ${FLAVOR:U} != tools
ONLY_FOR_ARCHS= amd64 powerpc64 powerpc64le
ONLY_FOR_ARCHS= aarch64 amd64 powerpc64 powerpc64le
# We need to check if it build with other ARCHS
# For i386 we have unknown type name 'vm_page_t'
.endif
......@@ -207,9 +207,9 @@ MAKE_ARGS+= ARCH=ppc
USE_GCC= yes
.endif
.if ${ARCH:Mpowerpc64*}
.if ${ARCH:Mpowerpc64*} || ${ARCH:Maarch64}
CONFIGURE_ARGS+= --disable-bsd-user
MAKE_ARGS+= ARCH=ppc64
MAKE_ARGS+= ARCH=${ARCH:C/powerpc64.*/ppc64/}
PLIST_SUB+= BSDUSER="@comment "
.else
PLIST_SUB+= BSDUSER=""
......@@ -226,7 +226,7 @@ post-patch-CDROM_DMA-off:
@${REINPLACE_CMD} -e '/USE_DMA_CDROM/d' ${WRKSRC}/include/hw/ide/internal.h
do-build:
cd ${WRKSRC} && ${GMAKE}
cd ${WRKSRC} && ${GMAKE} -j${MAKE_JOBS_NUMBER}
do-install:
cd ${WRKSRC} && ${SETENV} DESTDIR=${STAGEDIR} ${GMAKE} install
......
......@@ -11,7 +11,7 @@ WWW= https://wiki.qemu.org/Main_Page
LICENSE= GPLv2
.if ${FLAVOR:U} != tools
ONLY_FOR_ARCHS= amd64 powerpc64 powerpc64le
ONLY_FOR_ARCHS= aarch64 amd64 powerpc64 powerpc64le
# We need to check if it build with other ARCHS
# For i386 we have unknown type name 'vm_page_t'
.endif
......@@ -207,9 +207,9 @@ MAKE_ARGS+= ARCH=ppc
USE_GCC= yes
.endif
.if ${ARCH:Mpowerpc64*}
.if ${ARCH:Mpowerpc64*} || ${ARCH:Maarch64}
CONFIGURE_ARGS+= --disable-bsd-user
MAKE_ARGS+= ARCH=ppc64
MAKE_ARGS+= ARCH=${ARCH:C/powerpc64.*/ppc64/}
PLIST_SUB+= BSDUSER="@comment "
.else
PLIST_SUB+= BSDUSER=""
......@@ -226,7 +226,7 @@ post-patch-CDROM_DMA-off:
@${REINPLACE_CMD} -e '/USE_DMA_CDROM/d' ${WRKSRC}/include/hw/ide/internal.h
do-build:
cd ${WRKSRC} && ${GMAKE}
cd ${WRKSRC} && ${GMAKE} -j${MAKE_JOBS_NUMBER}
do-install:
cd ${WRKSRC} && ${SETENV} DESTDIR=${STAGEDIR} ${GMAKE} install
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment