summaryrefslogtreecommitdiffstats
path: root/meta-rcar-gen2/copy_mm_software_lcb.sh
diff options
context:
space:
mode:
authorTadao Tanikawa <tanikawa.tadao@jp.panasonic.com>2015-08-31 13:31:19 +0900
committerTadao Tanikawa <tanikawa.tadao@jp.panasonic.com>2015-08-31 17:59:03 +0900
commit3fb0bff8c1fc1f4f0a18afeae67e88bdff7582f2 (patch)
treece866aae6bc9f481cab2d436c731db247c2e12ca /meta-rcar-gen2/copy_mm_software_lcb.sh
parent13a2551505942808752a1721c9a27ce7d35cec33 (diff)
parente3b0f456ba8176253cf0d289a14bf26b1ea2134a (diff)
[AGL] Merge branch 'genivi-7.0-bsp-1.8.0' into agl-1.0-bsp-1.8.0
Change-Id: Ib6f42400e99ec1a95cdf139d31fb18ea1ba3314e Signed-off-by: Tadao Tanikawa <tanikawa.tadao@jp.panasonic.com>
Diffstat (limited to 'meta-rcar-gen2/copy_mm_software_lcb.sh')
-rwxr-xr-xmeta-rcar-gen2/copy_mm_software_lcb.sh148
1 files changed, 148 insertions, 0 deletions
diff --git a/meta-rcar-gen2/copy_mm_software_lcb.sh b/meta-rcar-gen2/copy_mm_software_lcb.sh
new file mode 100755
index 0000000..e8e8b82
--- /dev/null
+++ b/meta-rcar-gen2/copy_mm_software_lcb.sh
@@ -0,0 +1,148 @@
+#!/bin/sh
+
+if [ ! -d $1/R-Car_Series_Evaluation_Software_Package_for_Linux ]
+then
+ tar -C $1 -zxf $1/R-Car_Series_Evaluation_Software_Package_for_Linux-*.tar.gz
+fi
+
+if [ ! -d $1/R-Car_Series_Evaluation_Software_Package_of_Linux_Drivers ]
+then
+ tar -C $1 -zxf $1/R-Car_Series_Evaluation_Software_Package_of_Linux_Drivers-*.tar.gz
+fi
+
+find_change_name(){
+ cur_path=`pwd`
+ fileP=`find . -name $1 | tail -1`
+ if [ "X${fileP}" != "X" ]; then
+ tmp_path=`dirname $fileP | tail -1`
+ cd $tmp_path
+ mv -f $1 $2
+ fi
+ cd $cur_path
+}
+change_names() {
+ if [ ! -e $1 ]; then
+ echo "Directory $1 not existed. Exit !"
+ exit
+ fi
+ current_path=`pwd`
+ cd $1
+
+ find_change_name libomxr_core.so.0.0.0 libomxr_core.so.2.0.0
+ find_change_name libomxr_mc_cmn.so.0.0.0 libomxr_mc_cmn.so.2.0.0
+ find_change_name libomxr_mc_h264d.so.0.0.0 libomxr_mc_h264d.so.2.0.0
+ find_change_name libomxr_mc_h264e.so.0.0.0 libomxr_mc_h264e.so.2.0.0
+ find_change_name libomxr_mc_vecmn.so.0.0.0 libomxr_mc_vecmn.so.2.0.0
+ find_change_name libomxr_mc_vcmn.so.0.0.0 libomxr_mc_vcmn.so.2.0.0
+ find_change_name libomxr_mc_vdcmn.so.0.0.0 libomxr_mc_vdcmn.so.2.0.0
+ find_change_name libuvcs_dec.so.0.0.0 libuvcs_dec.so.1.0.0
+ find_change_name libuvcs_enc.so.0.0.0 libuvcs_enc.so.1.0.0
+ find_change_name libvcp3_avcd.so.0.0.0 libvcp3_avcd.so.1.0.0
+ find_change_name libvcp3_avce.so.0.0.0 libvcp3_avce.so.1.0.0
+ find_change_name libvcp3_mcvd.so.0.0.0 libvcp3_mcvd.so.1.0.0
+ find_change_name libvcp3_mcve.so.0.0.0 libvcp3_mcve.so.1.0.0
+
+ cd $current_path
+}
+
+
+TMP=`mktemp -d`
+
+#cp -rf $1/R-Car_Series_Evaluation_Software_Package_of_Linux_Drivers/mmp_reference_lib_v160_eva/EVARCH2M2MMPRDL001_1_6_0/RCH2M2MMPRDL001 $TMP
+#cp -rf $1/R-Car_Series_Evaluation_Software_Package_for_Linux/mmp_reference_lib_m2e2_v160_eva/EVARCH2M2MMPRLL001_1_6_0/RCH2M2MMPRLL001 $TMP
+
+MM_DRVs=`find $1 -name RCH2M2MMPRDL001 | tail -1`
+cp -rf $MM_DRVs $TMP
+
+MM_LIBs=`find $1 -name RCH2M2MMPRLL001 | tail -1`
+cp -rf $MM_LIBs $TMP
+
+KERNEL_MODULES="$TMP/RCH2M2MMPRDL001"
+tar -C $KERNEL_MODULES/fdpm/fdpm-module/files/ -jcf fdpm-kernel.tar.bz2 .
+tar -C $KERNEL_MODULES/mmngr/mmngr-module/files/ -jcf mmngr-kernel.tar.bz2 .
+tar -C $KERNEL_MODULES/mmngrbuf/mmngrbuf-module/files/ -jcf mmngrbuf-kernel.tar.bz2 .
+tar -C $KERNEL_MODULES/s3ctl/s3ctl-module/files/ -jcf s3ctl-kernel.tar.bz2 .
+tar -C $KERNEL_MODULES/vspm/vspm-module/files/ -jcf vspm-kernel.tar.bz2 .
+
+USER_MODULES="$TMP/RCH2M2MMPRLL001"
+tar -C $USER_MODULES/fdpm/fdpm-module/files/ -jcf fdpm.tar.bz2 .
+tar -C $USER_MODULES/mmngr/mmngr-module/files/ -jcf mmngr.tar.bz2 .
+tar -C $USER_MODULES/mmngrbuf/mmngrbuf-module/files/ -jcf mmngrbuf.tar.bz2 .
+tar -C $USER_MODULES/s3ctl/s3ctl-module/files/ -jcf s3ctl.tar.bz2 .
+tar -C $USER_MODULES/vspm/vspm-module/files/ -jcf vspm.tar.bz2 .
+
+rm -rf $TMP/*
+
+mv fdpm-kernel.tar.bz2 recipes-kernel/fdpm-module/files
+mv mmngr-kernel.tar.bz2 recipes-kernel/mmngr-module/files/mmngr.tar.bz2
+mv mmngrbuf-kernel.tar.bz2 recipes-kernel/mmngr-module/files/mmngrbuf.tar.bz2
+mv s3ctl-kernel.tar.bz2 recipes-kernel/s3ctl-module/files
+mv vspm-kernel.tar.bz2 recipes-kernel/vspm-module/files
+
+mv fdpm.tar.bz2 recipes-multimedia/fdpm-module/files
+mv mmngr.tar.bz2 recipes-multimedia/mmngr-module/files
+mv mmngrbuf.tar.bz2 recipes-multimedia/mmngr-module/files
+mv s3ctl.tar.bz2 recipes-multimedia/s3ctl-module/files
+mv vspm.tar.bz2 recipes-multimedia/vspm-module/files/vspm-user.tar.bz2
+
+###
+OMXTMP=`mktemp -d`
+#cp -a $1/R-Car_Series_Evaluation_Software_Package_for_Linux/omx_video_m2e2_v160_eva/* $OMXTMP
+#cp -a $1/R-Car_Series_Evaluation_Software_Package_of_Linux_Drivers/omx_video_v160_eva/* $OMXTMP
+OMX_LIBs=`find $1 -name omx_video_m2e2_v* | tail -1`
+OMX_DRVs=`find $1 -name omx_video_v* | tail -1`
+cp -rf $OMX_LIBs/* $OMXTMP
+cp -rf $OMX_DRVs/* $OMXTMP
+
+unzip -q -d $TMP $OMXTMP/EVARTM0AC0000XCMCTL20SL32C.zip
+mv $TMP/EVARTM0AC0000XCMCTL20SL32C $TMP/RTM0AC0000XCMCTL20SL32C
+tar zxf $TMP/RTM0AC0000XCMCTL20SL32C/Software.tar.gz -C $TMP/RTM0AC0000XCMCTL20SL32C/
+rm $TMP/RTM0AC0000XCMCTL20SL32C/Software.tar.gz
+change_names "$TMP/RTM0AC0000XCMCTL20SL32C"
+tar -C $TMP/ -jcf RTM0AC0000XCMCTL20SL32C.tar.bz2 .
+rm -rf $TMP/*
+mv RTM0AC0000XCMCTL20SL32C.tar.bz2 recipes-multimedia/omx-module/files/
+
+unzip -q -d $TMP $OMXTMP/EVARTM0AC0000XV264D20SL32C.zip
+mv $TMP/EVARTM0AC0000XV264D20SL32C $TMP/RTM0AC0000XV264D20SL32C
+tar zxf $TMP/RTM0AC0000XV264D20SL32C/Software.tar.gz -C $TMP/RTM0AC0000XV264D20SL32C
+rm $TMP/RTM0AC0000XV264D20SL32C/Software.tar.gz
+change_names "$TMP/RTM0AC0000XV264D20SL32C"
+tar -C $TMP/ -jcf RTM0AC0000XV264D20SL32C.tar.bz2 .
+rm -rf $TMP/*
+mv RTM0AC0000XV264D20SL32C.tar.bz2 recipes-multimedia/omx-module/files/
+
+unzip -q -d $TMP $OMXTMP/EVARTM0AC0000XV264E20SL32C.zip
+mv $TMP/EVARTM0AC0000XV264E20SL32C $TMP/RTM0AC0000XV264E20SL32C
+tar zxf $TMP/RTM0AC0000XV264E20SL32C/Software.tar.gz -C $TMP/RTM0AC0000XV264E20SL32C
+rm $TMP/RTM0AC0000XV264E20SL32C/Software.tar.gz
+change_names "$TMP/RTM0AC0000XV264E20SL32C"
+tar -C $TMP/ -jcf RTM0AC0000XV264E20SL32C.tar.bz2 .
+rm -rf $TMP/*
+mv RTM0AC0000XV264E20SL32C.tar.bz2 recipes-multimedia/omx-module/files/
+
+unzip -q -d $TMP $OMXTMP/EVARTM0AC0000XVCMND20SL32C.zip
+mv $TMP/EVARTM0AC0000XVCMND20SL32C $TMP/RTM0AC0000XVCMND20SL32C
+tar zxf $TMP/RTM0AC0000XVCMND20SL32C/Software.tar.gz -C $TMP/RTM0AC0000XVCMND20SL32C
+rm $TMP/RTM0AC0000XVCMND20SL32C/Software.tar.gz
+change_names "$TMP/RTM0AC0000XVCMND20SL32C"
+tar -C $TMP/ -jcf RTM0AC0000XVCMND20SL32C.tar.bz2 .
+rm -rf $TMP/*
+mv RTM0AC0000XVCMND20SL32C.tar.bz2 recipes-multimedia/omx-module/files/
+
+unzip -q -d $TMP $OMXTMP/EVARTM0AC0000XVCMNE20SL32C.zip
+mv $TMP/EVARTM0AC0000XVCMNE20SL32C $TMP/RTM0AC0000XVCMNE20SL32C
+tar zxf $TMP/RTM0AC0000XVCMNE20SL32C/Software.tar.gz -C $TMP/RTM0AC0000XVCMNE20SL32C
+rm $TMP/RTM0AC0000XVCMNE20SL32C/Software.tar.gz
+change_names "$TMP/RTM0AC0000XVCMNE20SL32C"
+tar -C $TMP/ -jcf RTM0AC0000XVCMNE20SL32C.tar.bz2 .
+rm -rf $TMP/*
+mv RTM0AC0000XVCMNE20SL32C.tar.bz2 recipes-multimedia/omx-module/files/
+
+unzip -q -d $TMP $OMXTMP/RTM0AC0000UVCSCMN1SL32C.zip
+mv $TMP/RTM0AC0000UVCSCMN1SL32C $TMP/uvcs
+tar -C $TMP/ -jcf uvcs-kernel.tar.bz2 .
+rm -rf $TMP
+mv uvcs-kernel.tar.bz2 recipes-kernel/uvcs-module/files
+
+rm -rf $OMXTMP