3 ZIP_1="R-Car_Gen3_Series_Evaluation_Software_Package_for_Linux-20180326.zip"
4 ZIP_2="R-Car_Gen3_Series_Evaluation_Software_Package_of_Linux_Drivers-20180409.zip"
6 COPY_SCRIPT="$METADIR/meta-renesas-rcar-gen3/meta-rcar-gen3/docs/sample/copyscript/copy_evaproprietary_softwares.sh"
8 test -f ${XDG_CONFIG_HOME:-~/.config}/user-dirs.dirs && source ${XDG_CONFIG_HOME:-~/.config}/user-dirs.dirs
9 DOWNLOAD_DIR=${XDG_DOWNLOAD_DIR:-$HOME/Downloads}
10 EXTRACT_DIR=$METADIR/binary-tmp
13 [[ -t 1 ]] && stdout_in_terminal=1
15 [[ $stdout_in_terminal == 0 ]] && return
22 if [[ $? != 0 ]]; then
23 echo "tput: terminal doesn't support color settings, continuing" >&2
28 color_green=$(color bold 2)
29 color_yellow=$(color bold 3)
30 color_red=$(color bold 1)
31 color_none=$(color none)
34 echo "${color_red}$@${color_none}" >&2
41 function copy_mm_packages() {
42 if [ -f $DOWNLOAD_DIR/$ZIP_1 -a -f $DOWNLOAD_DIR/$ZIP_2 ]; then
44 cp --update $DOWNLOAD_DIR/$ZIP_1 $EXTRACT_DIR
45 cp --update $DOWNLOAD_DIR/$ZIP_2 $EXTRACT_DIR
47 error "ERROR: FILES \""+$DOWNLOAD_DIR/$ZIP_1+"\" NOT EXTRACTING CORRECTLY"
48 error "ERROR: FILES \""+$DOWNLOAD_DIR/$ZIP_2+"\" NOT EXTRACTING CORRECTLY"
49 log "The graphics and multimedia acceleration packages for "
50 log "the R-Car Gen3 board BSP can be downloaded from:"
51 log "<https://www.renesas.com/en-us/solutions/automotive/rcar-demoboard-2.html>"
53 error "These 2 files from there should be stored in your"
54 error "'$DOWNLOAD_DIR' directory."
60 if [ -f $COPY_SCRIPT ]; then
61 cd $METADIR/meta-renesas-rcar-gen3/
62 $COPY_SCRIPT -d -f $EXTRACT_DIR
65 log "scripts to copy drivers for Gen3 not found."