Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/external/mit/xorg/lib/gallium allow all arm platforms, not j...



details:   https://anonhg.NetBSD.org/src/rev/b9a1c9423698
branches:  trunk
changeset: 452125:b9a1c9423698
user:      mrg <mrg%NetBSD.org@localhost>
date:      Wed Jun 19 05:17:05 2019 +0000

description:
allow all arm platforms, not just evbarm, to build with MKLLVMRT.
allow mips and powerpc platforms as well.

amusingly, this allows my shark to finally have functional
if not usable GL :-)  glxgears gets 1fps.

status:
- arm32 and ppc have llvm dynamic linker patches.
- ppc is not yet working.
- mips untested.

diffstat:

 external/mit/xorg/lib/gallium/Makefile |  33 ++++++++++++++++++++++++++++++---
 1 files changed, 30 insertions(+), 3 deletions(-)

diffs (68 lines):

diff -r ad0948e49fa1 -r b9a1c9423698 external/mit/xorg/lib/gallium/Makefile
--- a/external/mit/xorg/lib/gallium/Makefile    Wed Jun 19 03:40:15 2019 +0000
+++ b/external/mit/xorg/lib/gallium/Makefile    Wed Jun 19 05:17:05 2019 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.32 2019/06/09 01:56:49 mrg Exp $
+# $NetBSD: Makefile,v 1.33 2019/06/19 05:17:05 mrg Exp $
 
 # Link the gallium mega driver.
 
@@ -97,6 +97,15 @@
 .if ${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH} == "x86_64" || ${MACHINE} == "evbarm"
 BUILD_NOUVEAU=1
 BUILD_VDPAU=1
+.endif
+
+.if ${MACHINE_ARCH} == "i386" || \
+    ${MACHINE_ARCH} == "x86_64" || \
+    ${MACHINE_ARCH} == "powerpc" || \
+    ${MACHINE_ARCH} == "powerpc64" || \
+    !empty(MACHINE_ARCH:Mmips*) || \
+    !empty(MACHINE_ARCH:Mearm*) || \
+    !empty(MACHINE_ARCH:Marm*)
 . if ${MKLLVMRT} != "no"
 BUILD_LLVMPIPE=1
 . endif
@@ -998,7 +1007,6 @@
 .endif
 
 .if ${MACHINE_CPU} == "aarch64"
-# XXX duplicates
 LLVMRT_LIBS+=  \
                AArch64AsmParser \
                AArch64CodeGen \
@@ -1010,7 +1018,6 @@
 .endif
 
 .if ${MACHINE_CPU} == "arm"
-# XXX duplicates
 LLVMRT_LIBS+=  \
                ARMCodeGen \
                ARMDisassembler \
@@ -1021,6 +1028,26 @@
                ARMUtils
 .endif
 
+.if ${MACHINE_CPU} == "mips"
+LLVMRT_LIBS+=  \
+               MipsCodeGen \
+               MipsDisassembler \
+               MipsAsmParser \
+               MipsMCTargetDesc \
+               MipsAsmPrinter \
+               MipsTargetInfo
+.endif
+
+.if ${MACHINE_CPU} == "powerpc"
+LLVMRT_LIBS+=  \
+               PowerPCCodeGen \
+               PowerPCDisassembler \
+               PowerPCTargetInfo \
+               PowerPCMCTargetDesc \
+               PowerPCAsmParser \
+               PowerPCAsmPrinter
+.endif
+
 LLVMRT_LIBS+=  \
                GlobalISel \
                MCDisassembler \



Home | Main Index | Thread Index | Old Index