Skip to content

Commit

Permalink
nvidia_current: Install all libs
Browse files Browse the repository at this point in the history
Find libraries to be installed by pattern instead of using a explicit
list empedded in the bee file.

Install libraries with the original names and create symlink from the soname
if there is one.

We don't need to look into other diretories (tls/) because all libraries
are now in the main directory of the archive.

We no longer need to special case libglx.so, because we install every
library by its original name anyway.
  • Loading branch information
donald committed May 2, 2019
1 parent c45628c commit 0752e65
Showing 1 changed file with 5 additions and 27 deletions.
32 changes: 5 additions & 27 deletions nvidia_current-418.56-0.bee
Original file line number Diff line number Diff line change
Expand Up @@ -40,26 +40,6 @@ mee_install() {

mkdir -pv ${D}${PREFIX}/{bin,lib,drivers,share}

NVLIBS=(
"libGL.so.${PKGVERSION}"
"libOpenCL.so.1.0.0"
"libcuda.so.${PKGVERSION}"
"libnvcuvid.so.${PKGVERSION}"
"libnvidia-cfg.so.${PKGVERSION}"
"libnvidia-compiler.so.${PKGVERSION}"
"libnvidia-encode.so.${PKGVERSION}"
"libnvidia-glcore.so.${PKGVERSION}"
"libnvidia-ml.so.${PKGVERSION}"
"libnvidia-opencl.so.${PKGVERSION}"
"libnvidia-ptxjitcompiler.so.${PKGVERSION}"
"tls/libnvidia-tls.so.${PKGVERSION}"
"libnvidia-wfb.so.${PKGVERSION}"
"libvdpau_nvidia.so.${PKGVERSION}"
libnvidia-gtk2.so.${PKGVERSION}
libnvidia-gtk3.so.${PKGVERSION}
libnvidia-fatbinaryloader.so.${PKGVERSION}
)

NVDRV="nvidia_drv.so"

NVBIN=( \
Expand All @@ -69,18 +49,16 @@ mee_install() {
"nvidia-modprobe" \
)

for i in ${NVLIBS[@]} ; do
soname=$(soname ${i} || echo "ERROR")
echo "installing ${i} as lib/${soname}"
install -v -c ${i} ${D}${LIBDIR}/${soname}
for i in lib*.so.$PKGVERSION; do
install -v -t ${D}${LIBDIR} "$i"
if soname="$(soname "$i")"; then
test -e "${D}${LIBDIR}/${soname}" || ln -sv "$i" "${D}${LIBDIR}/${soname}"
fi
done

echo "installing ${NVDRV} as drivers/$(basename ${NVDRV})";
install -c -v ${NVDRV} ${D}${PREFIX}/drivers

# soname is missing in this release..
install -c -v "libglx.so.${PKGVERSION}" ${D}${LIBDIR}/libglx.so

mkdir -pv ${D}/usr/share/man/man1

for i in ${NVBIN[@]} ; do
Expand Down

0 comments on commit 0752e65

Please sign in to comment.