From 06bce5d0da8630c5d7fee50e63d674b98c1a779e Mon Sep 17 00:00:00 2001 From: Donald Buczek Date: Wed, 6 Nov 2024 09:26:12 +0100 Subject: [PATCH 1/2] linux: Add version 5.15.170 --- linux-5.15.170-478.bee | 47 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 linux-5.15.170-478.bee diff --git a/linux-5.15.170-478.bee b/linux-5.15.170-478.bee new file mode 100644 index 000000000..8e2419b1b --- /dev/null +++ b/linux-5.15.170-478.bee @@ -0,0 +1,47 @@ +#!/bin/env beesh + +# note: BEE_MAKEFLAGS="-j $(nproc)" ./linux-xxx.bee + +KERNELVERSION=${PKGVERSION} + +# append extra version to get for example 4.8-rc4 +KERNELVERSION=${KERNELVERSION}${PKGEXTRAVERSION_DASH} + +echo $KERNELVERSION + +#BEE_WGET_OPTS=(--header="Authorization: Bearer $(cat ~/.bee_gh_token)") +#SRCURL[0]="https://github.molgen.mpg.de/api/v3/repos/mariux64/linux/tarball/mariux-$KERNELVERSION-$PKGREVISION mariux-$KERNELVERSION-$PKGREVISION.tar.gz" +SRCURL[0]="https://beehive.molgen.mpg.de/5f867960ff47da0fd7ed52b070818015/mariux-5.15.170-478.tar.gz" + +KERNELLOCAL=".mx64.${PKGREVISION}" +FULLKERNELVERSION="${KERNELVERSION}${KERNELLOCAL}" + +B=${S} + +same_revision_files=$(ls ${BEE_PKGDIR}/linux-[0-9].[0-9]*-${PKGREVISION}.x86_64.bee.* 2>/dev/null) \ + && echo "A kernel with revision ${PKGREVISION} has already been build: $same_revision_files" \ + && exit 1 + + +mee_configure() { + echo "configure $@" + echo "CONFIG_LOCALVERSION=\"$KERNELLOCAL\"" > .config + grep -v 'CONFIG_LOCALVERSION=' config-mpi >> .config + make olddefconfig +} + +mee_build() { + echo "build $@" + make ${BEE_MAKEFLAGS} +} + +mee_install() { + echo "install $@" + + make modules_install INSTALL_MOD_PATH=${D} + make install INSTALL_PATH=${D}/boot + + rm -rf ${D}/lib/modules/${FULLKERNELVERSION}/{source,build} + + ln -sv bzImage-${FULLKERNELVERSION} ${D}/boot/mariux.${PKGREVISION} +} From a423dd089f0b206a550b2325159f28de1936ae36 Mon Sep 17 00:00:00 2001 From: Donald Buczek Date: Wed, 6 Nov 2024 09:26:41 +0100 Subject: [PATCH 2/2] nvidia_linux: Add version 535.104.05 for Linux 5.15.170-478 --- nvidia_linux-5.15.170-478-535.104.05-0.bee | 48 ++++++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100644 nvidia_linux-5.15.170-478-535.104.05-0.bee diff --git a/nvidia_linux-5.15.170-478-535.104.05-0.bee b/nvidia_linux-5.15.170-478-535.104.05-0.bee new file mode 100644 index 000000000..1b112e3b3 --- /dev/null +++ b/nvidia_linux-5.15.170-478-535.104.05-0.bee @@ -0,0 +1,48 @@ +#!/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 +}