blob: cd72c6f86ab5a4b9323dcd5e2c08c19ec1e19064 [file] [log] [blame]
#!/bin/sh
dest_dir_relative=$1
intall_dir=$(pwd)
chmod a+x ./vehicle_dc_ref-glibc-x86_64-zxic-image-armv7a-zx297520v3-toolchain-ext-1.0.sh
mkdir ${dest_dir_relative}
cd $1
dest_dir=$(pwd)
cd $intall_dir
if [ ! -d ${dest_dir} ]; then
echo "Input invaild path for folders to install\n"
exit 1
fi
./vehicle_dc_ref-glibc-x86_64-zxic-image-armv7a-zx297520v3-toolchain-ext-1.0.sh -d ${dest_dir}/esdk
tar -zxvf upstream.tar.gz -C $dest_dir
ln -s ${dest_dir}/upstream/tools ${dest_dir}/esdk
cp linux_bb.diff ${dest_dir}/esdk/layers/meta-zxic/recipes-kernel/linux/
cd ${dest_dir}/esdk/layers/meta-zxic/recipes-kernel/linux
patch < linux_bb.diff
cd ${dest_dir}/esdk
mkdir -p ${dest_dir}/allbins/zx297520v3/vehicle_dc_ref/elf/normal