blob: e1ff843c56b980d2bdaa374043f7ca086c71c7c5 [file] [log] [blame]
xf.li60972982023-06-22 23:27:19 -07001#!/bin/sh
2
3dest_dir_relative=$1
4intall_dir=$(pwd)
5
sj.zhang470f1762023-08-22 16:08:21 +08006chmod a+x ./vehicle_dc_ref-glibc-x86_64-zxic-image-armv7a-zx297520v3-toolchain-ext-1.0.sh
xf.li60972982023-06-22 23:27:19 -07007mkdir ${dest_dir_relative}
8cd $1
9dest_dir=$(pwd)
10cd $intall_dir
11if [ ! -d ${dest_dir} ]; then
12 echo "Input invaild path for folders to install\n"
13 exit 1
14fi
sj.zhang470f1762023-08-22 16:08:21 +080015./vehicle_dc_ref-glibc-x86_64-zxic-image-armv7a-zx297520v3-toolchain-ext-1.0.sh -d ${dest_dir}/esdk
xf.li60972982023-06-22 23:27:19 -070016tar -zxvf upstream.tar.gz -C $dest_dir
17ln -s ${dest_dir}/upstream/tools ${dest_dir}/esdk
18cp linux_bb.diff ${dest_dir}/esdk/layers/meta-zxic/recipes-kernel/linux/
19cd ${dest_dir}/esdk/layers/meta-zxic/recipes-kernel/linux
20git apply linux_bb.diff
21cd ${dest_dir}/esdk
xf.liac094562023-09-20 00:52:20 -070022mkdir -p ${dest_dir}/allbins/zx297520v3/vehicle_dc_ref/elf/normal