@@ -22,15 +22,7 @@ function DisplayNvidiaLicense {
2222 fi
2323
2424 # By default referencing license agreement of JP 5.0.2
25- license_path=" https://developer.download.nvidia.com/embedded/L4T/r35_Release_v1.0/Release/Tegra_Software_License_Agreement-Tegra-Linux.txt"
26-
27- if [ " 5.1.2" = ${patches_revison} ]; then
28- license_path=" https://developer.download.nvidia.com/embedded/L4T/r35_Release_v4.1/release/Tegra_Software_License_Agreement-Tegra-Linux.txt"
29- fi
30-
31- if [ " 6.0" = ${patches_revison} ]; then
32- license_path=" https://developer.download.nvidia.com/embedded/L4T/r36_Release_v3.0/release/Tegra_Software_License_Agreement-Tegra-Linux.txt"
33- fi
25+ license_path=" https://developer.download.nvidia.com/embedded/L4T/r${JETSON_L4T_RELEASE} _Release_v${JETSON_L4T_REVISION} /release/Tegra_Software_License_Agreement-Tegra-Linux.txt"
3426
3527 echo -e " \nPlease notice: This script will download the kernel source (from nv-tegra, NVIDIA's public git repository) which is subject to the following license:\n\n${license_path} \n"
3628
@@ -91,7 +83,7 @@ case ${JETSON_L4T_VERSION} in
9183 PATCHES_REV=" 5.0.2" # JP 5.0.2
9284 KERNEL_RELEASE=" 5.10"
9385 ;;
94- " 36.3" )
86+ " 36.3" | " 36.4 " | " 36.4.3 " )
9587 PATCHES_REV=" 6.0" # JP 6.0
9688 KERNEL_RELEASE=" 5.15"
9789 ;;
@@ -135,11 +127,13 @@ echo -e "\e[32mCreate the sandbox - NVIDIA L4T source tree(s)\e[0m"
135127mkdir -p ${sdk_dir} /Tegra
136128TEGRA_SOURCE_SYNC_SH=" source_sync.sh"
137129if [ " 5.0.2" = " $PATCHES_REV " ]; then
130+ KBASE=./Tegra/sources/kernel/kernel-$KERNEL_RELEASE
138131 TEGRA_SOURCE_SYNC_SH=" source_sync_5.0.2.sh"
139132fi
140133if [ " 6.0" = " $PATCHES_REV " ]; then
134+ KBASE=./Tegra/kernel/kernel-jammy-src
141135 TEGRA_SOURCE_SYNC_SH=" source_sync_6.0.sh"
142- TEGRA_TAG=" jetson_36.3 "
136+ TEGRA_TAG=" jetson_ $JETSON_L4T_RELEASE . $JETSON_L4T_REVISION "
143137fi
144138cp ./scripts/Tegra/$TEGRA_SOURCE_SYNC_SH ${sdk_dir} /Tegra
145139
@@ -148,11 +142,6 @@ DisplayNvidiaLicense "$PATCHES_REV"
148142
149143# Download NVIDIA source, disregard errors on module tag sync
150144./Tegra/$TEGRA_SOURCE_SYNC_SH -k ${TEGRA_TAG} || true
151- if [ " 6.0" = " $PATCHES_REV " ]; then
152- KBASE=./Tegra/kernel/kernel-jammy-src
153- else
154- KBASE=./Tegra/sources/kernel/kernel-$KERNEL_RELEASE
155- fi
156145
157146echo ${KBASE}
158147pushd ${KBASE}
0 commit comments