Files
Main_MiSTer/setup_default_toolchain.sh
Sam Hardeman 2b279d1488 video: HDR display/output support (BT2020 / DCI P3) (#718)
* Merge branch 'hdr' of https://github.com/wickerwaka/Main_MiSTer into feature-hdr

Merged in wickerwaka's old HDR branch and integrated the BT2020 and DCI P3 color space conversion matrices. Changed "hdr" option to be a selection of matrix instead of saturation option.

* Add HDR example to MiSTer ini
2022-12-22 02:43:15 +08:00

30 lines
771 B
Bash

#!/bin/bash
if [ "${BASH_SOURCE[0]}" -ef "$0" ]
then
echo "This script should be sourced, not executed."
exit 1
fi
echo "Setting up default toolchain..."
SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
GCC_VER=10.2-2020.11
GCC_PACKAGE_NAME=gcc-arm-$GCC_VER-x86_64-arm-none-linux-gnueabihf
GCC_DIR=$SCRIPT_DIR/$GCC_PACKAGE_NAME
if [ ! -d $GCC_DIR ]; then
echo "Downloading $GCC_PACKAGE_NAME..."
GCC_TARBALL=$GCC_PACKAGE_NAME.tar.xz
wget --no-check-certificate -c https://developer.arm.com/-/media/Files/downloads/gnu-a/$GCC_VER/binrel/$GCC_TARBALL
tar xvf $GCC_TARBALL
rm $GCC_TARBALL
fi
echo "Setting environment variables..."
export CC=$GCC_DIR/bin/arm-none-gnueabihf-gcc
export PATH="$GCC_DIR/bin:$PATH"
echo "Done!"