blob: 5037d7682406b267017b3c7ae15ed81cf2f31da3 [file] [log] [blame]
#!/bin/sh
dest_dir_relative=$1
intall_dir=$(pwd)
chmod a+x ./vehicle_dc-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-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
git apply linux_bb.diff
cd ${dest_dir}/esdk