summaryrefslogtreecommitdiffstats
path: root/core/modules/nvidia-libs
diff options
context:
space:
mode:
authorSimon Rettberg2019-04-26 11:24:14 +0200
committerroot2019-04-26 11:24:14 +0200
commit24fb4ad142f7cb932a5e47ee80c9bbfc10a758c0 (patch)
tree5873fcbd617e6ea13f1c1bdc6145211441fbf764 /core/modules/nvidia-libs
parentSupport multi-target targets with @ syntax (diff)
downloadmltk-24fb4ad142f7cb932a5e47ee80c9bbfc10a758c0.tar.gz
mltk-24fb4ad142f7cb932a5e47ee80c9bbfc10a758c0.tar.xz
mltk-24fb4ad142f7cb932a5e47ee80c9bbfc10a758c0.zip
[nvidia*/rfs-s31] Support shipping multiple driver versions
Diffstat (limited to 'core/modules/nvidia-libs')
-rwxr-xr-xcore/modules/nvidia-libs/data/addon-init10
-rw-r--r--core/modules/nvidia-libs/module.build11
-rw-r--r--core/modules/nvidia-libs/module.conf22
-rw-r--r--core/modules/nvidia-libs/module.conf.ubuntu15
4 files changed, 58 insertions, 0 deletions
diff --git a/core/modules/nvidia-libs/data/addon-init b/core/modules/nvidia-libs/data/addon-init
new file mode 100755
index 00000000..061bff6b
--- /dev/null
+++ b/core/modules/nvidia-libs/data/addon-init
@@ -0,0 +1,10 @@
+#!/bin/ash
+
+[ -e "/opt/openslx/etc/nvidia.whiteout" ] || exit 66
+
+while read line; do
+ rm -f -- "$line"
+done < "/opt/openslx/etc/nvidia.whiteout"
+
+exit 0
+
diff --git a/core/modules/nvidia-libs/module.build b/core/modules/nvidia-libs/module.build
new file mode 100644
index 00000000..b35e6fd2
--- /dev/null
+++ b/core/modules/nvidia-libs/module.build
@@ -0,0 +1,11 @@
+#!/bin/bash
+
+module_load() {
+ [ -z "$VERSION" ] && perror "Not run from an @ target"
+ local SRC
+ SRC="${ROOT_DIR}/tmp/work/nvidia-common/build/$VERSION"
+ [ -d "$SRC" ] || perror "nvidia-common did not build $VERSION"
+ # XXX Now we override the MODULE_BUILD_DIR, where mltk will then grab alle the required files from
+ MODULE_BUILD_DIR="$SRC"
+}
+
diff --git a/core/modules/nvidia-libs/module.conf b/core/modules/nvidia-libs/module.conf
new file mode 100644
index 00000000..f5ca87eb
--- /dev/null
+++ b/core/modules/nvidia-libs/module.conf
@@ -0,0 +1,22 @@
+#!/bin/bash
+
+REQUIRED_FILES="
+ /etc/OpenCL/vendors/nvidia.icd
+ /usr/local/share/applications/nvidia-settings.desktop
+ /opt/openslx/etc/nvidia.whiteout
+"
+
+REQUIRED_DIRECTORIES="
+ /usr/bin
+ /usr/lib
+ /var/lib/nvidia
+ /usr/share/nvidia
+ /usr/share/egl
+ /usr/share/glvnd
+ /usr/share/X11
+"
+
+REQUIRED_MODULES="
+ nvidia-common
+"
+
diff --git a/core/modules/nvidia-libs/module.conf.ubuntu b/core/modules/nvidia-libs/module.conf.ubuntu
new file mode 100644
index 00000000..5135d91e
--- /dev/null
+++ b/core/modules/nvidia-libs/module.conf.ubuntu
@@ -0,0 +1,15 @@
+#!/bin/bash
+# libvdpau: While nvidia delivers a linvdpau within it's driver package, nvidia
+# itself recommends using a distribution package if available. So, here we go.
+
+REQUIRED_CONTENT_PACKAGES="
+ libvdpau1
+"
+
+REQUIRED_INSTALLED_PACKAGES="
+ libvdpau1
+"
+REQUIRED_SYSTEM_FILES+="
+ /sbin/ldconfig.real
+"
+