Skip to content
Permalink
b7ef5b9c45
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time
executable file 90 lines (69 sloc) 2.57 KB
#!/bin/env beesh
# BEE_VERSION nvidia-mxlinks-0.15-0
EXCLUDE=("^/usr/lib/(X11|xorg)(|/modules(|/drivers))$")
mee_install() {
mkdir -pv ${D}{${LIBDIR}/{X11,xorg}/modules/drivers,${DATAROOTDIR},${BINDIR},${SYSCONFDIR}}
NVLIBS=(
"libEGL_nvidia.so.0"
"libGLESv1_CM_nvidia.so.1"
"libGLESv2_nvidia.so.2"
"libGLX_nvidia.so.0"
"libcuda.so.1"
"libcudadebugger.so.1"
"libnvcuvid.so.1"
"libnvidia-allocator.so.1"
"libnvidia-api.so.1"
"libnvidia-cfg.so.1"
"libnvidia-encode.so.1"
"libnvidia-fbc.so.1"
"libnvidia-ml.so.1"
"libnvidia-nvvm.so.4"
"libnvidia-opencl.so.1"
"libnvidia-opticalflow.so.1"
"libnvidia-ptxjitcompiler.so.1"
"libnvoptix.so.1"
"libvdpau_nvidia.so.1"
)
for i in ${NVLIBS[@]} ; do
ln -sv /usr/share/mxgfx/lib/${i} ${D}${LIBDIR}/${i}
done
start_cmd install -d -Dm 755 ${D}/etc/OpenCL/vendors
echo "libnvidia-opencl.so.1" > ${D}/etc/OpenCL/vendors/nvidia.icd
start_cmd chmod 644 ${D}/etc/OpenCL/vendors/nvidia.icd
ln -sv libvdpau_nvidia.so.1 ${D}${LIBDIR}/libvdpau_nvidia.so
ln -sv /node/usr_share_mxgfx \
${D}${DATAROOTDIR}/mxgfx
ln -sv /usr/share/mxgfx/drivers/nvidia_drv.so \
${D}${LIBDIR}/X11/modules/drivers/nvidia_drv.so
ln -sv /usr/share/mxgfx/drivers/nvidia_drv.so \
${D}${LIBDIR}/xorg/modules/drivers/nvidia_drv.so
ln -sv /usr/share/mxgfx/bin/nvidia-settings \
${D}${BINDIR}
ln -sv /usr/share/mxgfx/bin/nvidia-xconfig \
${D}${BINDIR}
ln -sv /usr/share/mxgfx/bin/nvidia-smi \
${D}${BINDIR}
mkdir -pv ${D}/usr/share/nvidia/pciidhints
# for driver 96.43.xx
for id in 0185 0110 0172 0181 0171 ; do
ln -vs legacy2 ${D}/usr/share/nvidia/pciidhints/10de:${id}
done
# for driver 173.14.xx
for id in 0322 0326 ; do
ln -vs legacy3 ${D}/usr/share/nvidia/pciidhints/10de:${id}
done
# for driver 304.xx
for id in 0393 ; do
ln -vs legacy4 ${D}/usr/share/nvidia/pciidhints/10de:${id}
done
# for driver 340.xx
for id in 06fd 0659 06fa 0a34 0a38 10c3; do
ln -vs legacy5 ${D}/usr/share/nvidia/pciidhints/10de:${id}
done
# legacyX for cards, which became legacy sometime after
# 390.xx, but we didn't try to find out, at which branch that happened
# exactly, because we no longer support these cards anyway.
for id in 0df8 104a 107d 0ffa 11ba 0ffe;do
ln -vs legacyX ${D}/usr/share/nvidia/pciidhints/10de:${id}
done
}