diff options
author | Tadao Tanikawa <tanikawa.tadao@jp.panasonic.com> | 2015-10-06 17:43:42 +0900 |
---|---|---|
committer | Tadao Tanikawa <tanikawa.tadao@jp.panasonic.com> | 2015-10-06 17:43:42 +0900 |
commit | 9e0925569683e90eee9a07de76671457608b5597 (patch) | |
tree | 41aa7ee62e7b3aeb815a93b285d13628e15cb130 | |
parent | 67a55c17b1396e73dc491907fcc4e1ac2f612837 (diff) |
Add shell script for copying gfx drivers & multimedia packages
This copying script is used from meta-agl/scripts/envsetup.sh when integrate
AGL Distribution with repo.
This script copy gfx drivers & multimedia packages for R-Car2 M2 Porter board.
IMPORTANT NOTE: Before running this scripts, proprietary binaries should be
downloaded manually, because they require click-though license agreement
to download and use them.
There are 2 tarballs to be downloaded and stored into your
$XDG_DOWNLOAD_DIR (e.g. $HOME/Downloads)
You can check where your XDG_DOWNLOAD_DIR is by this command:
$ test -f ${XDG_CONFIG_HOME:-~/.config}/user-dirs.dirs && source ${XDG_CONFIG_HOME:-~/.config}/user-dirs.dirs
$ echo ${XDG_DOWNLOAD_DIR:-$HOME/Downloads}
Ideally, they should be able to download automatically by recipes in
meta-renesas, but we cannot use this way for now.
Change-Id: I50831855e95b81f4f702f52ce78b79b4b5c837e6
Signed-off-by: Tadao Tanikawa <tanikawa.tadao@jp.panasonic.com>
-rw-r--r-- | meta-rcar-gen2/scripts/setup_mm_packages.sh | 56 |
1 files changed, 56 insertions, 0 deletions
diff --git a/meta-rcar-gen2/scripts/setup_mm_packages.sh b/meta-rcar-gen2/scripts/setup_mm_packages.sh new file mode 100644 index 0000000..9fed901 --- /dev/null +++ b/meta-rcar-gen2/scripts/setup_mm_packages.sh @@ -0,0 +1,56 @@ +#!/bin/bash + +MM_PKG_REVISION="20150727" + +MM_PKG_NAME="R-Car_Series_Evaluation_Software_Package" +MM_PKG_USERLAND="for_Linux" +MM_PKG_KERNEL="of_Linux_Drivers" + +ZIP_1=${MM_PKG_NAME}_${MM_PKG_USERLAND}-${MM_PKG_REVISION}.zip +ZIP_2=${MM_PKG_NAME}_${MM_PKG_KERNEL}-${MM_PKG_REVISION}.zip + +COPY_GFX_SCRIPT=copy_gfx_software_$1.sh +COPY_MM_SCRIPT=copy_mm_software_lcb.sh + +test -f ${XDG_CONFIG_HOME:-~/.config}/user-dirs.dirs && source ${XDG_CONFIG_HOME:-~/.config}/user-dirs.dirs +DOWNLOAD_DIR=${XDG_DOWNLOAD_DIR:-$HOME/Downloads} + +function copy_mm_packages() { + if [ ! -d binary-tmp ]; then + if [ -f $DOWNLOAD_DIR/$ZIP_1 -a -f $DOWNLOAD_DIR/$ZIP_2 ]; then + mkdir binary-tmp + cd binary-tmp + unzip -o $DOWNLOAD_DIR/$ZIP_1 + unzip -o $DOWNLOAD_DIR/$ZIP_2 + cd .. + else + echo -n "The graphics and multimedia acceleration packages for " + echo -e "the R-Car M2 Porter board can be download from :" + echo -e " <http://www.renesas.com/secret/r_car_download/rcar_demoboard.jsp>" + echo -e + echo -n "These 2 files from there should be store in your" + echo -e "'$DOWNLOAD_DIR' directory." + echo -e " $ZIP_1" + echo -e " $ZIP_2" + return -1 + fi + fi + + if [ -f meta-renesas/meta-rcar-gen2/$COPY_GFX_SCRIPT ]; then + cd meta-renesas/meta-rcar-gen2/ + ./$COPY_GFX_SCRIPT ../../binary-tmp + cd ../.. + else + echo "scripts to copy GFX drivers for '$1' not found." + return -1 + fi + + if [ -f meta-renesas/meta-rcar-gen2/$COPY_MM_SCRIPT ]; then + cd meta-renesas/meta-rcar-gen2/ + ./$COPY_MM_SCRIPT ../../binary-tmp + cd ../.. + else + echo "scripts to copy MM software for '$1' not found." + return -1 + fi +} |