File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -69,6 +69,15 @@ export KERNEL_MODULES_OUT=$TEGRA_KERNEL_OUT/modules
6969# Check if BUILD_NUMBER is set as it will add a postfix to the kernel name "vermagic" (normally it happens on CI who have BUILD_NUMBER defined)
7070[[ -n " ${BUILD_NUMBER} " ]] && echo " Warning! You have BUILD_NUMBER set to ${BUILD_NUMBER} , This will affect your vermagic"
7171
72+ # Copy d4xx.c to the appropriate sources directory
73+ echo " Copying d4xx.c to sources directory..."
74+ if [[ " $JETPACK_VERSION " == " 6.x" ]]; then
75+ cp $DEVDIR /kernel/realsense/d4xx.c $SRCS /nvidia-oot/drivers/media/i2c/d4xx.c
76+ else
77+ # For JetPack 5.x and 4.6.1
78+ cp $DEVDIR /kernel/realsense/d4xx.c $SRCS /kernel/nvidia/drivers/media/i2c/d4xx.c
79+ fi
80+
7281# Build jp6 out-of-tree modules
7382# following:
7483# https://docs.nvidia.com/jetson/archives/r36.2/DeveloperGuide/SD/Kernel/KernelCustomization.html#building-the-jetson-linux-kernel
You can’t perform that action at this time.
0 commit comments