diff options
author | Thomas Van Iseghem <[email protected]> | 2023-05-23 19:29:03 +0200 |
---|---|---|
committer | Thomas Van Iseghem <[email protected]> | 2023-05-23 19:29:03 +0200 |
commit | fc0709d242bcf7d2a935c8ee53296442af3aed1b (patch) | |
tree | 9aeb334743fb9515fd546be5bfd5fc57c07c5c56 /CorOS-dev-environment/install_toolchain(broken).sh | |
parent | 808a8a3cec2b75a3dcb658a2238f2998fcf38e54 (diff) | |
parent | 2c57afa1e3d61cb4a0801c0eb2c1646f3ad7be60 (diff) | |
download | OpenCortex-fc0709d242bcf7d2a935c8ee53296442af3aed1b.tar.gz OpenCortex-fc0709d242bcf7d2a935c8ee53296442af3aed1b.zip |
Merge branch 'feature/better-emulation-environment'
Diffstat (limited to 'CorOS-dev-environment/install_toolchain(broken).sh')
-rw-r--r-- | CorOS-dev-environment/install_toolchain(broken).sh | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/CorOS-dev-environment/install_toolchain(broken).sh b/CorOS-dev-environment/install_toolchain(broken).sh new file mode 100644 index 0000000..c3b05fa --- /dev/null +++ b/CorOS-dev-environment/install_toolchain(broken).sh @@ -0,0 +1,37 @@ +#!/bin/sh +# Currently the latest addin .deb package is corrupted. It is unable to be unpacked. +# This script is used to download the latest addin .deb package and install it. + +##################################### Install Toolchain ############################# +linux_addin_version=$1 + +linux_addin_link="https://download.analog.com/tools/LinuxAddInForCCES/Releases/Release_$linux_addin_version/adi-LinuxAddinForCCES-linux-x86-$linux_addin_version.deb" + +echo "Start downloading linux-addin ($linux_addin_link)" +wget --quiet $linux_addin_link +echo "linux-addin download finished" +linux_addin_link=`basename $linux_addin_link` +linux_addin_name=`basename $linux_addin_link` + + +linux_addin_deb=$linux_addin_link +echo "Start to install $linux_addin_name, Installing..." +export DEBIAN_FRONTEND=noninteractive +ls +echo "dpkg -i $linux_addin_deb" +dpkg -i $linux_addin_deb +echo "Finished, $linux_addin_name installed into PATH=/opt/analog/cces-linux-add-in/${linux_addin_vesion}/ARM/arm-none-eabi/bin/" +########################################################################################## + +##################### Get source codes(u-boot & buildroot) form linu-add-in ############ +echo "Start to unzip the source-code to workspace, Installing..." +source_code_path=$2 +tar -zxvf /opt/analog/cces-linux-add-in/${linux_addin_version}/buildroot-sc5xx-${linux_addin_version}/src/buildroot-sc5xx-${linux_addin_version}.tar.gz -C ${source_code_path} +tar -zxvf /opt/analog/cces-linux-add-in/${linux_addin_version}/uboot-sc5xx-${linux_addin_version}/src/uboot-sc5xx-${linux_addin_version}.tar.gz -C ${source_code_path} +echo "Finished, source-code{uboot & buildroot} in the PATH=${source_code_path}" + +#Apply the patch for automake of buildroot +echo "Apply the patch for automake of buildroot" +patch=$3 +cp ${patch} ${source_code_path}/buildroot/package/automake/ +##########################################################################################
\ No newline at end of file |