Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions srcpkgs/nvidia/patches/nvidia-tegra-bpmp.patch
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,17 @@

// Use the CCF APIs if enabled in Kernel config and RM build
// has Dual license define enabled.

--- a/kernel-open/nvidia/nv-clk.c
+++ b/kernel-open/nvidia/nv-clk.c
@@ -27,8 +27,10 @@
#include "nv-linux.h"
#include "nv-platform.h"

+#if IS_ENABLED(CONFIG_TEGRA_BPMP)
#include <soc/tegra/bpmp-abi.h>
#include <soc/tegra/bpmp.h>
+#endif // IS_ENABLED(CONFIG_TEGRA_BPMP)

// Use the CCF APIs if enabled in Kernel config and RM build
// has Dual license define enabled.
11 changes: 10 additions & 1 deletion srcpkgs/nvidia/template
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,11 @@ depends="nvidia-libs-${version}_${revision}
nvidia-firmware-${version}_${revision}"
patch_args="-Np1 --directory=${XBPS_BUILDDIR}/${pkgname}-${version}/${_pkg}"

build_options="open"
desc_option_open="Use open kernel module sources"
build_options_default="open"


_install_libs() {
local libdir=$1

Expand Down Expand Up @@ -254,7 +259,11 @@ do_install() {

# dkms pkg
vmkdir usr/src/nvidia-${version}
vcopy "kernel/*" usr/src/nvidia-${version}
if [ "$build_option_open" ]; then
vcopy "kernel-open/*" usr/src/nvidia-${version}
else
vcopy "kernel/*" usr/src/nvidia-${version}
fi
vcopy ${FILESDIR}/dkms.conf usr/src/nvidia-${version}
sed -e "s/__PKGVER/${version}/g" \
-e 's/__MAKEJOBS/-j$(nproc)/g' \
Expand Down
Loading