[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
10/15: gnu: mesa: Add support for powerpc-linux.
From: |
guix-commits |
Subject: |
10/15: gnu: mesa: Add support for powerpc-linux. |
Date: |
Mon, 4 May 2020 15:42:56 -0400 (EDT) |
efraim pushed a commit to branch wip-ppc
in repository guix.
commit 94b393be50d8e9752fcc5abd46aa960a8c7e0ded
Author: Efraim Flashner <address@hidden>
AuthorDate: Thu Apr 30 20:51:29 2020 +0300
gnu: mesa: Add support for powerpc-linux.
* gnu/packages/gl.scm (mesa)[inputs]: Add llvm-9, glslang for powerpc.
[arguments]: Customize the configure flags for powerpc. Skip tests on
powerpc.
---
gnu/packages/gl.scm | 20 ++++++++++++++++----
1 file changed, 16 insertions(+), 4 deletions(-)
diff --git a/gnu/packages/gl.scm b/gnu/packages/gl.scm
index 941d0ad..38545da 100644
--- a/gnu/packages/gl.scm
+++ b/gnu/packages/gl.scm
@@ -6,7 +6,7 @@
;;; Copyright © 2016 ng0 <address@hidden>
;;; Copyright © 2016, 2017, 2018, 2020 Ricardo Wurmus <address@hidden>
;;; Copyright © 2016 David Thompson <address@hidden>
-;;; Copyright © 2017, 2018, 2019 Efraim Flashner <address@hidden>
+;;; Copyright © 2017, 2018, 2019, 2020 Efraim Flashner <address@hidden>
;;; Copyright © 2017 Arun Isaac <address@hidden>
;;; Copyright © 2017, 2018, 2019 Rutger Helling <address@hidden>
;;; Copyright © 2018, 2019 Tobias Geerinckx-Rice <address@hidden>
@@ -268,7 +268,7 @@ also known as DXTn or DXTC) for Mesa.")
("libxrandr" ,libxrandr)
("libxvmc" ,libxvmc)
,@(match (%current-system)
- ((or "x86_64-linux" "i686-linux")
+ ((or "x86_64-linux" "i686-linux" "powerpc-linux")
;; Note: update the 'clang' input of mesa-opencl when bumping
this.
`(("llvm" ,llvm-9)))
(_
@@ -281,7 +281,7 @@ also known as DXTn or DXTC) for Mesa.")
("flex" ,flex)
("gettext" ,gettext-minimal)
,@(match (%current-system)
- ((or "x86_64-linux" "i686-linux")
+ ((or "x86_64-linux" "i686-linux" "powerpc-linux")
`(("glslang" ,glslang)))
(_
`()))
@@ -295,6 +295,8 @@ also known as DXTn or DXTC) for Mesa.")
((or "armhf-linux" "aarch64-linux")
;; TODO: Fix svga driver for aarch64 and armhf.
'("-Dgallium-drivers=etnaviv,freedreno,kmsro,lima,nouveau,panfrost,r300,r600,swrast,tegra,v3d,vc4,virgl"))
+ ("powerpc-linux"
+ '("-Dgallium-drivers=nouveau,r300,r600,radeonsi,swrast,virgl"))
(_
'("-Dgallium-drivers=iris,nouveau,r300,r600,radeonsi,svga,swrast,virgl")))
;; Enable various optional features. TODO: opencl requires libclc,
@@ -315,12 +317,14 @@ also known as DXTn or DXTC) for Mesa.")
,@(match (%current-system)
((or "i686-linux" "x86_64-linux")
'("-Dvulkan-drivers=intel,amd"))
+ ("powerpc-linux" ; No default on this platform.
+ '("-Dvulkan-drivers=amd"))
(_
'("-Dvulkan-drivers=auto")))
;; Enable the Vulkan overlay layer on i686-linux and x86-64-linux.
,@(match (%current-system)
- ((or "x86_64-linux" "i686-linux")
+ ((or "x86_64-linux" "i686-linux" "powerpc-linux")
'("-Dvulkan-overlay-layer=true"))
(_
'()))
@@ -334,6 +338,9 @@ also known as DXTn or DXTC) for Mesa.")
((or "x86_64-linux" "i686-linux")
'("-Ddri-drivers=i915,i965,nouveau,r200,r100"
"-Dllvm=true")) ; default is x86/x86_64 only
+ ("powerpc-linux"
+ '("-Ddri-drivers=nouveau,r200,r100"
+ "-Dllvm=true"))
(_
'("-Ddri-drivers=nouveau,r200,r100"))))
@@ -341,6 +348,11 @@ also known as DXTn or DXTC) for Mesa.")
;; documentation recommends using 'release' for performance anyway.
#:build-type "release"
+ ;; The llvm-based tests are flakey on non-Intel hardware.
+ #:tests? ,(if (string=? "powerpc-linux" (or (%current-system)
+ (%current-target-system)))
+ '#f '#t)
+
#:modules ((ice-9 match)
(srfi srfi-1)
(guix build utils)
- branch wip-ppc created (now c01e2c8), guix-commits, 2020/05/04
- 01/15: gnu: libffi: Fix building on powerpc., guix-commits, 2020/05/04
- 02/15: FIXME: Downgrade glibc to 2.30., guix-commits, 2020/05/04
- 04/15: FIXME: allow reference to bootstrap-binaries in binutils-final, guix-commits, 2020/05/04
- 05/15: gnu: datefudge: Only use glibc-2.31 workaround on supported platforms., guix-commits, 2020/05/04
- 03/15: WIP add powerpc support, guix-commits, 2020/05/04
- 06/15: gnu: valgrind: Fix build on powerpc., guix-commits, 2020/05/04
- 07/15: gnu: icu4c: Update to 67.1., guix-commits, 2020/05/04
- 14/15: build: qemu-command: Add support for powerpc., guix-commits, 2020/05/04
- 08/15: gnu: elfutils: Skip tests on powerpc., guix-commits, 2020/05/04
- 10/15: gnu: mesa: Add support for powerpc-linux.,
guix-commits <=
- 11/15: gnu: qemu-minimal: Only build for the host's architecture., guix-commits, 2020/05/04
- 09/15: gnu: gd: Fix tests., guix-commits, 2020/05/04
- 12/15: gnu: Add mac-fdisk., guix-commits, 2020/05/04
- 15/15: WIP add powerpc kernel, guix-commits, 2020/05/04
- 13/15: gnu: american-fuzzy-lop: Add support for powerpc-linux., guix-commits, 2020/05/04