Skip to content

Commit

Permalink
PR #153 from dmipx: d4xx: use d4xx.c source file for jp4
Browse files Browse the repository at this point in the history
d4xx: use d4xx.c source file for jp4
  • Loading branch information
Nir-Az authored Jan 25, 2023
2 parents 12034a2 + 0da9651 commit 2ac5c2a
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 9 deletions.
10 changes: 4 additions & 6 deletions apply_patches.sh
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,8 @@ apply_external_patches $1 kernel/nvidia
apply_external_patches $1 $KERNEL_DIR
apply_external_patches $1 hardware/nvidia/platform/t19x/galen/kernel-dts

if [[ $JETPACK_VERSION =~ 5.* ]]; then
if [ $1 = 'apply' ]; then
cp $DEVDIR/d4xx.c $DEVDIR/sources_$JETPACK_VERSION/kernel/nvidia/drivers/media/i2c/
elif [ $1 = 'reset' ]; then
rm $DEVDIR/sources_$JETPACK_VERSION/kernel/nvidia/drivers/media/i2c/d4xx.c
fi
if [ $1 = 'apply' ]; then
cp $DEVDIR/d4xx.c $DEVDIR/sources_$JETPACK_VERSION/kernel/nvidia/drivers/media/i2c/
elif [ $1 = 'reset' ]; then
rm $DEVDIR/sources_$JETPACK_VERSION/kernel/nvidia/drivers/media/i2c/d4xx.c
fi
4 changes: 1 addition & 3 deletions apply_patches_ext.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,4 @@ apply_external_patches $1 kernel/nvidia
apply_external_patches $1 $KERNEL_DIR
apply_external_patches $1 hardware/nvidia/platform/t19x/galen/kernel-dts

if [[ $JETPACK_VERSION =~ 5.* ]]; then
cp $DEVDIR/d4xx.c $DEVDIR/$1/kernel/nvidia/drivers/media/i2c/
fi
cp $DEVDIR/d4xx.c $DEVDIR/$1/kernel/nvidia/drivers/media/i2c/
3 changes: 3 additions & 0 deletions build_all.sh
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@ export TEGRA_KERNEL_OUT=$DEVDIR/images/$JETPACK_VERSION
mkdir -p $TEGRA_KERNEL_OUT
export KERNEL_MODULES_OUT=$TEGRA_KERNEL_OUT/modules

# 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)
[[ -n "${BUILD_NUMBER}" ]] && echo "Warning! You have BUILD_NUMBER set to ${BUILD_NUMBER}, This will affect your vermagic"

cd $SRCS/$KERNEL_DIR

make ARCH=arm64 O=$TEGRA_KERNEL_OUT tegra_defconfig
Expand Down

0 comments on commit 2ac5c2a

Please sign in to comment.