Patchwork [meta-fsl-arm] imx-test: Install vpu config and media files

login
register
mail settings
Submitter Daiane Angolini
Date Sept. 17, 2013, 12:37 p.m.
Message ID <1379421454-14615-1-git-send-email-daiane.angolini@freescale.com>
Download mbox | patch
Permalink /patch/58253/
State Changes Requested
Delegated to: Otavio Salvador
Headers show

Comments

Daiane Angolini - Sept. 17, 2013, 12:37 p.m.
Files (config_dec, config_enc, config_encdec,
config_net) are used to configure mxc-vpu-test.out

And file akiyo.mp4 is a media file sample used
for mxc_vpu_test.out

Fixes [YOCTO: #4185]

Change-Id: I4a09988319440d75bf2c72d2f9351fa58a9804f4
Signed-off-by: Daiane Angolini <daiane.angolini@freescale.com>
---
 recipes-bsp/imx-test/imx-test.inc | 1 +
 1 file changed, 1 insertion(+)
Otavio Salvador - Sept. 17, 2013, 3:03 p.m.
On Tue, Sep 17, 2013 at 9:37 AM, Daiane Angolini
<daiane.angolini@freescale.com> wrote:
> Files (config_dec, config_enc, config_encdec,
> config_net) are used to configure mxc-vpu-test.out
>
> And file akiyo.mp4 is a media file sample used
> for mxc_vpu_test.out
>
> Fixes [YOCTO: #4185]
>
> Change-Id: I4a09988319440d75bf2c72d2f9351fa58a9804f4
> Signed-off-by: Daiane Angolini <daiane.angolini@freescale.com>
> ---
>  recipes-bsp/imx-test/imx-test.inc | 1 +
>  1 file changed, 1 insertion(+)
>
> diff --git a/recipes-bsp/imx-test/imx-test.inc b/recipes-bsp/imx-test/imx-test.inc
> index d30ee43..58964cb 100644
> --- a/recipes-bsp/imx-test/imx-test.inc
> +++ b/recipes-bsp/imx-test/imx-test.inc
> @@ -33,6 +33,7 @@ do_install() {
>          install -m 755 test-utils.sh ${D}/unit_tests/test-utils.sh
>          install -m 0755 ${WORKDIR}/clocks.sh ${D}/unit_tests/clocks.sh
>          install -m 755 ${S}/platform/${PLATFORM}/* ${D}/unit_tests/
> +        install -m 755 ${S}/test/mxc_vpu_test/configs/* ${D}/unit_tests/

I thought a way to make this generic (for platforms which does not have VPU) as:

if [ -e ${S}/test/mxc_vpu_test/mxc-vpu-test.out ]; then
    install -m 755 ${S}/test/mxc_vpu_test/configs/* ${D}/unit_tests/
fi

This could have a good FIXME comment on it but it'd allow it to be
installed only when the platform builds the .out file.

Thoughts?

Patch

diff --git a/recipes-bsp/imx-test/imx-test.inc b/recipes-bsp/imx-test/imx-test.inc
index d30ee43..58964cb 100644
--- a/recipes-bsp/imx-test/imx-test.inc
+++ b/recipes-bsp/imx-test/imx-test.inc
@@ -33,6 +33,7 @@  do_install() {
         install -m 755 test-utils.sh ${D}/unit_tests/test-utils.sh
         install -m 0755 ${WORKDIR}/clocks.sh ${D}/unit_tests/clocks.sh
         install -m 755 ${S}/platform/${PLATFORM}/* ${D}/unit_tests/
+        install -m 755 ${S}/test/mxc_vpu_test/configs/* ${D}/unit_tests/
 }
 
 FILES_${PN} += "/unit_tests"