Skip to content

Commit

Permalink
ubuntu24.04 precompile support
Browse files Browse the repository at this point in the history
Signed-off-by: shiva kumar <[email protected]>
  • Loading branch information
shivakunv committed Dec 3, 2024
1 parent d5ba896 commit 0618294
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion base/generate-ci-config
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@ SUPPORTED_KERNELS=$(apt-cache search linux-objects-nvidia-${DRIVER_BRANCH}-serve
DRIVER_VERSION=$(apt-cache show nvidia-utils-${DRIVER_BRANCH}-server |grep Version |awk '{print $2}' | cut -d'-' -f1 | head -n 1)

# Latest supported kernel
SK=$(echo $SUPPORTED_KERNELS | awk '{print $NF}')
# only consider suffix -nvidia
SK=$(echo "$SUPPORTED_KERNELS" | awk '/-nvidia$/{last=$0} END{print last}')

# Write to file
echo "export KERNEL_VERSION=$SK DRIVER_VERSION=$DRIVER_VERSION DRIVER_VERSIONS=$DRIVER_VERSION" > /var/kernel_version.txt
Expand Down

0 comments on commit 0618294

Please sign in to comment.