|
32 | 32 | export DEVDIR=$(cd `dirname $0` && pwd) |
33 | 33 |
|
34 | 34 | . $DEVDIR/scripts/setup-common "$1" |
35 | | -echo "Setup JetPack $JETPACK_VERSION to sources_$JETPACK_VERSION" |
| 35 | +echo "Setup JetPack $1 to sources_$JETPACK_VERSION" |
36 | 36 |
|
37 | 37 | # Display NVIDIA license |
38 | 38 | DisplayNvidiaLicense "" |
39 | 39 |
|
40 | 40 | # Install L4T gcc if not installed |
41 | | -if [[ ! -d "$DEVDIR/l4t-gcc/$JETPACK_VERSION/bin/" ]]; then |
42 | | - mkdir -p $DEVDIR/l4t-gcc/$JETPACK_VERSION |
43 | | - cd $DEVDIR/l4t-gcc/$JETPACK_VERSION |
44 | | - if [[ "$JETPACK_VERSION" == "6.x" ]]; then |
45 | | - wget --quiet --show-progress https://developer.nvidia.com/downloads/embedded/l4t/r36_release_v3.0/toolchain/aarch64--glibc--stable-2022.08-1.tar.bz2 -O aarch64--glibc--stable-final.tar.bz2 |
46 | | - tar xf aarch64--glibc--stable-final.tar.bz2 --strip-components 1 |
47 | | - elif [[ "$JETPACK_VERSION" == "5.x" ]]; then |
48 | | - wget --quiet --show-progress https://developer.nvidia.com/embedded/jetson-linux/bootlin-toolchain-gcc-93 -O aarch64--glibc--stable-final.tar.gz |
49 | | - tar xf aarch64--glibc--stable-final.tar.gz |
50 | | - elif [[ "$JETPACK_VERSION" == "4.6.1" ]]; then |
51 | | - wget --quiet --show-progress http://releases.linaro.org/components/toolchain/binaries/7.3-2018.05/aarch64-linux-gnu/gcc-linaro-7.3.1-2018.05-x86_64_aarch64-linux-gnu.tar.xz |
52 | | - tar xf gcc-linaro-7.3.1-2018.05-x86_64_aarch64-linux-gnu.tar.xz --strip-components 1 |
| 41 | +if [[ $(uname -m) == aarch64 ]]; then |
| 42 | + echo |
| 43 | + echo Native build |
| 44 | + echo |
| 45 | +else |
| 46 | + if [[ ! -d "$DEVDIR/l4t-gcc/$JETPACK_VERSION/bin/" ]]; then |
| 47 | + mkdir -p $DEVDIR/l4t-gcc/$JETPACK_VERSION |
| 48 | + cd $DEVDIR/l4t-gcc/$JETPACK_VERSION |
| 49 | + if [[ "$JETPACK_VERSION" == "6.x" ]]; then |
| 50 | + wget --quiet --show-progress https://developer.nvidia.com/downloads/embedded/l4t/r36_release_v3.0/toolchain/aarch64--glibc--stable-2022.08-1.tar.bz2 -O aarch64--glibc--stable-final.tar.bz2 |
| 51 | + tar xf aarch64--glibc--stable-final.tar.bz2 --strip-components 1 |
| 52 | + elif [[ "$JETPACK_VERSION" == "5.x" ]]; then |
| 53 | + wget --quiet --show-progress https://developer.nvidia.com/embedded/jetson-linux/bootlin-toolchain-gcc-93 -O aarch64--glibc--stable-final.tar.gz |
| 54 | + tar xf aarch64--glibc--stable-final.tar.gz |
| 55 | + elif [[ "$JETPACK_VERSION" == "4.6.1" ]]; then |
| 56 | + wget --quiet --show-progress http://releases.linaro.org/components/toolchain/binaries/7.3-2018.05/aarch64-linux-gnu/gcc-linaro-7.3.1-2018.05-x86_64_aarch64-linux-gnu.tar.xz |
| 57 | + tar xf gcc-linaro-7.3.1-2018.05-x86_64_aarch64-linux-gnu.tar.xz --strip-components 1 |
| 58 | + fi |
53 | 59 | fi |
54 | 60 | fi |
55 | 61 |
|
|
0 commit comments