xf.li | 6097298 | 2023-06-22 23:27:19 -0700 | [diff] [blame] | 1 | #!/bin/sh |
| 2 | |
| 3 | dest_dir_relative=$1 |
| 4 | intall_dir=$(pwd) |
| 5 | |
sj.zhang | 470f176 | 2023-08-22 16:08:21 +0800 | [diff] [blame^] | 6 | chmod a+x ./vehicle_dc_ref-glibc-x86_64-zxic-image-armv7a-zx297520v3-toolchain-ext-1.0.sh |
xf.li | 6097298 | 2023-06-22 23:27:19 -0700 | [diff] [blame] | 7 | mkdir ${dest_dir_relative} |
| 8 | cd $1 |
| 9 | dest_dir=$(pwd) |
| 10 | cd $intall_dir |
| 11 | if [ ! -d ${dest_dir} ]; then |
| 12 | echo "Input invaild path for folders to install\n" |
| 13 | exit 1 |
| 14 | fi |
sj.zhang | 470f176 | 2023-08-22 16:08:21 +0800 | [diff] [blame^] | 15 | ./vehicle_dc_ref-glibc-x86_64-zxic-image-armv7a-zx297520v3-toolchain-ext-1.0.sh -d ${dest_dir}/esdk |
xf.li | 6097298 | 2023-06-22 23:27:19 -0700 | [diff] [blame] | 16 | tar -zxvf upstream.tar.gz -C $dest_dir |
| 17 | ln -s ${dest_dir}/upstream/tools ${dest_dir}/esdk |
| 18 | cp linux_bb.diff ${dest_dir}/esdk/layers/meta-zxic/recipes-kernel/linux/ |
| 19 | cd ${dest_dir}/esdk/layers/meta-zxic/recipes-kernel/linux |
| 20 | git apply linux_bb.diff |
| 21 | cd ${dest_dir}/esdk |