[gnome-build-meta] project.conf: Provide access to graphics hardware in the shell environment



commit 731893d81ff6c2cef9e3290f7d2deaa97555cd8f
Author: Tristan Van Berkom <tristan vanberkom codethink co uk>
Date:   Fri Mar 2 21:16:27 2018 +0900

    project.conf: Provide access to graphics hardware in the shell environment
    
    Now require version 3 of the format for `host-files` API break
    and usage of the new `optional` member.

 project.conf | 28 ++++++++++++++++++++++++++--
 1 file changed, 26 insertions(+), 2 deletions(-)
---
diff --git a/project.conf b/project.conf
index 8dce7dc..8203d59 100644
--- a/project.conf
+++ b/project.conf
@@ -2,7 +2,7 @@
 name: gnome
 
 # The minimum base BuildStream format
-format-version: 2
+format-version: 3
 
 # Where elements are stored
 element-path: elements
@@ -100,10 +100,34 @@ shell:
 
   # Some environment variables to inherit from the host environment
   environment-inherit:
+  - LANG
   - DISPLAY
   - DBUS_SESSION_BUS_ADDRESS
 
   # Some things to mount into the sandbox
   host-files:
-  - '/etc/resolv.conf'
+  # Understand user inherited uid/gid
   - '/etc/passwd'
+  - '/etc/group'
+  # Allow network resolution
+  - '/etc/resolv.conf'
+
+  # Allow access to plausible video devices,
+  # declare these optional to avoid meaningless warnings
+  - path: '/dev/dri'
+    optional: True
+  - path: '/dev/mali'
+    optional: True
+  - path: '/dev/mali0'
+    optional: True
+  - path: '/dev/umplock'
+    optional: True
+  - path: '/dev/nvidiactl'
+    optional: True
+  - path: '/dev/nvidia0'
+    optional: True
+  - path: '/dev/nvidia-modeset'
+    optional: True
+
+  # Allow access to sysfs, needed for local device discovery
+  - '/sys'


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]