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 48 lines (32 sloc) 1.36 KB
#!/bin/env beesh
NVIDIA_ARCHIVE="NVIDIA-Linux-x86_64-${PKGVERSION}.run"
#SRCURL[0]="https://de.download.nvidia.com/XFree86/Linux-x86_64/$PKGVERSION/NVIDIA-Linux-x86_64-$PKGVERSION.run"
SRCURL[0]="https://beehive.molgen.mpg.de/0bb10ef32e86d5e1ad37b710dac6e079/NVIDIA-Linux-x86_64-535.104.05.run"
PATCHURL+=()
LINUXPKG=${PKGEXTRANAME}.${ARCH}
LINUXKLOCALVER=$(beeversion --format "%v.mx64.%r" "${LINUXPKG}")
# '4.4.mx64.75' to '4.4.0.mx64.75'
if [[ $LINUXKLOCALVER =~ ^([0-9]+\.[0-9]+)(\.mx64.*) ]]; then
LINUXKLOCALVER="${BASH_REMATCH[1]}.0${BASH_REMATCH[2]}"
fi
build_in_sourcedir
sourcesubdir_append kernel
: ${BEE_TMP_TMPDIR:=/tmp}
# fix tar option for user namespace usage (`unshare -U -r BEEFILE`)
export TAR_OPTIONS=--no-same-owner
mee_extract() {
rmdir ${S}
start_cmd sh ${F}/${NVIDIA_ARCHIVE} -x --target ${S}
if [ ! -d "${BEE_TMP_TMPDIR}/${LINUXPKG}/source" ] ; then
start_cmd gtar -xf ${BEE_BUILDARCHIVEDIR}/${LINUXPKG}.beebuild.tar.bz2 -C ${BEE_TMP_TMPDIR}
fi
LINUXSRCDIR="${BEE_TMP_TMPDIR}/${LINUXPKG}/source"
}
mee_build() {
make SYSSRC=${LINUXSRCDIR} CC=gcc module
}
mee_install() {
mkdir -pv ${D}${DATAROOTDIR}/nvidia/kernel/${LINUXKLOCALVER}/${PKGVERSION}
cp -v *.ko ${D}${DATAROOTDIR}/nvidia/kernel/${LINUXKLOCALVER}/${PKGVERSION}/
ln -s ${PKGVERSION} ${D}${DATAROOTDIR}/nvidia/kernel/${LINUXKLOCALVER}/current
}