Return-Path: Received: by yocto-www.yoctoproject.org (Postfix, from userid 118) id D520DE008E1; Tue, 8 Mar 2016 15:37:54 -0800 (PST) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on yocto-www.yoctoproject.org X-Spam-Level: X-Spam-Status: No, score=-1.8 required=5.0 tests=BAYES_00, NO_RDNS_DOTCOM_HELO, RCVD_IN_DNSWL_LOW autolearn=ham version=3.3.1 X-Spam-HAM-Report: * -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low * trust * [206.46.173.19 listed in list.dnswl.org] * 0.8 NO_RDNS_DOTCOM_HELO Host HELO'd as a big ISP, but had no rDNS * -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% * [score: 0.0000] X-Greylist: delayed 3601 seconds by postgrey-1.32 at yocto-www; Tue, 08 Mar 2016 15:37:51 PST Received: from vms173019pub.verizon.net (vms173019pub.verizon.net [206.46.173.19]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id 4E91BE00848 for ; Tue, 8 Mar 2016 15:37:51 -0800 (PST) Received: from vz-proxy-l007.mx.aol.com ([64.236.82.151]) by vms173019.mailsrvcs.net (Oracle Communications Messaging Server 7.0.5.32.0 64bit (built Jul 16 2014)) with ESMTPA id <0O3Q00K7CS6W8360@vms173019.mailsrvcs.net> for meta-ti@yoctoproject.org; Tue, 08 Mar 2016 16:37:49 -0600 (CST) X-CMAE-Score: 0 X-CMAE-Analysis: v=2.1 cv=WcjxEBVX c=1 sm=1 tr=0 a=eaPqxu9IKnv3tbb7QsXVMw==:117 a=7OsogOcEt9IA:10 a=sozttTNsAAAA:8 a=x1DnO4yAmsZYdUOJ0CAA:9 Received: by 100.15.86.14 with SMTP id 2364a05a; Tue, 08 Mar 2016 22:37:49 GMT Received: from localhost.localdomain (elrond [192.168.0.7]) by gandalf.denix.org (Postfix) with ESMTP id BECC5161F1E; Tue, 8 Mar 2016 17:37:43 -0500 (EST) From: Denys Dmytriyenko To: meta-ti@yoctoproject.org Date: Tue, 08 Mar 2016 17:37:43 -0500 Message-id: <1457476663-12641-3-git-send-email-denis@denix.org> X-Mailer: git-send-email 2.2.0 In-reply-to: <1457476663-12641-1-git-send-email-denis@denix.org> References: <1457476663-12641-1-git-send-email-denis@denix.org> Subject: [PATCH 3/3] ti-ipc-rtos: preserve FW dir structure, use update-alternatives for test_omx* X-BeenThere: meta-ti@yoctoproject.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Usage and development list for the meta-ti layer List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 08 Mar 2016 23:37:54 -0000 From: Denys Dmytriyenko Signed-off-by: Denys Dmytriyenko --- recipes-ti/ipc/ti-ipc-rtos_git.bb | 23 +++++++++++++++++++---- 1 file changed, 19 insertions(+), 4 deletions(-) diff --git a/recipes-ti/ipc/ti-ipc-rtos_git.bb b/recipes-ti/ipc/ti-ipc-rtos_git.bb index eff1001..4c0fc74 100644 --- a/recipes-ti/ipc/ti-ipc-rtos_git.bb +++ b/recipes-ti/ipc/ti-ipc-rtos_git.bb @@ -2,7 +2,7 @@ require recipes-ti/includes/ti-paths.inc require recipes-ti/includes/ti-staging.inc require ti-ipc.inc -PR = "${INC_PR}.3" +PR = "${INC_PR}.4" DEPENDS = "ti-xdctools ti-sysbios" DEPENDS_append_keystone = " ti-cgt6x-native \ @@ -55,7 +55,22 @@ do_install() { install -d ${D}${IPC_INSTALL_DIR_RECIPE} cp -pPrf ${S}/* ${D}${IPC_INSTALL_DIR_RECIPE} - install -d ${D}${base_libdir}/firmware - find . -name "*.xe66" -type f | xargs -I {} install -m 0644 {} ${D}${base_libdir}/firmware/ - find . -name "*.xem4" -type f | xargs -I {} install -m 0644 {} ${D}${base_libdir}/firmware/ + install -d ${D}${base_libdir}/firmware/ipc + cp -pPrf ${S}/packages/ti/ipc/tests/bin/* ${D}${base_libdir}/firmware/ipc +} + +ALTERNATIVE_PRIORITY = "5" + +pkg_postinst_${PN}-fw_omap-a15 () { + update-alternatives --install /lib/firmware/dra7-dsp1-fw.xe66 dra7-dsp1-fw.xe66 ipc/ti_platforms_evmDRA7XX_dsp1/test_omx_dsp1_vayu.xe66 ${ALTERNATIVE_PRIORITY} + update-alternatives --install /lib/firmware/dra7-dsp2-fw.xe66 dra7-dsp2-fw.xe66 ipc/ti_platforms_evmDRA7XX_dsp2/test_omx_dsp2_vayu.xe66 ${ALTERNATIVE_PRIORITY} + update-alternatives --install /lib/firmware/dra7-ipu1-fw.xem4 dra7-ipu1-fw.xem4 ipc/ti_platforms_evmDRA7XX_ipu1/test_omx_ipu1_vayu.xem4 ${ALTERNATIVE_PRIORITY} + update-alternatives --install /lib/firmware/dra7-ipu2-fw.xem4 dra7-ipu2-fw.xem4 ipc/ti_platforms_evmDRA7XX_ipu2/test_omx_ipu2_vayu.xem4 ${ALTERNATIVE_PRIORITY} +} + +pkg_postrm_${PN}-fw_omap-a15 () { + update-alternatives --remove dra7-dsp1-fw.xe66 ipc/ti_platforms_evmDRA7XX_dsp1/test_omx_dsp1_vayu.xe66 + update-alternatives --remove dra7-dsp2-fw.xe66 ipc/ti_platforms_evmDRA7XX_dsp2/test_omx_dsp2_vayu.xe66 + update-alternatives --remove dra7-ipu1-fw.xem4 ipc/ti_platforms_evmDRA7XX_ipu1/test_omx_ipu1_vayu.xem4 + update-alternatives --remove dra7-ipu2-fw.xem4 ipc/ti_platforms_evmDRA7XX_ipu2/test_omx_ipu2_vayu.xem4 } -- 2.2.0