summaryrefslogtreecommitdiffstats
path: root/recipes-bsp/imx-test
diff options
context:
space:
mode:
authorEric Bénard <eric@eukrea.com>2012-03-08 14:20:50 +0100
committerOtavio Salvador <otavio@ossystems.com.br>2012-03-08 15:24:16 +0000
commita76a519c2d77bf6e21117ab487c72a6c67c1b699 (patch)
treef3736dff0ebbb2e9f720d1e734b91c16939c9e71 /recipes-bsp/imx-test
parent328e7723a8b8fe30b16a3a6ad41f284d3853e457 (diff)
downloadmeta-fsl-arm-a76a519c2d77bf6e21117ab487c72a6c67c1b699.tar.gz
imx-test: fix the recipe
- this recipe actually doesn't compile. - this patch fix this and package the tests. - currently only compile tested. Signed-off-by: Eric Bénard <eric@eukrea.com>
Diffstat (limited to 'recipes-bsp/imx-test')
-rw-r--r--recipes-bsp/imx-test/imx-test_0.1.bb30
1 files changed, 26 insertions, 4 deletions
diff --git a/recipes-bsp/imx-test/imx-test_0.1.bb b/recipes-bsp/imx-test/imx-test_0.1.bb
index bf632fe..aed2831 100644
--- a/recipes-bsp/imx-test/imx-test_0.1.bb
+++ b/recipes-bsp/imx-test/imx-test_0.1.bb
@@ -1,16 +1,38 @@
1SUMMARY = "Test programs for IMX53 BSP" 1SUMMARY = "Test programs for IMX BSP"
2DESCRIPTION = "Unit tests for the IMX53 BSP" 2DESCRIPTION = "Unit tests for the IMX BSP"
3SECTION = "base" 3SECTION = "base"
4LICENSE = "MIT" 4LICENSE = "MIT"
5LIC_FILES_CHKSUM = "file://${COREBASE}/LICENSE;md5=3f40d7994397109285ec7b81fdeb3b58" 5LIC_FILES_CHKSUM = "file://${COREBASE}/LICENSE;md5=3f40d7994397109285ec7b81fdeb3b58"
6 6
7PR = "r2" 7PR = "r3"
8 8
9COMPATIBLE_MACHINE = "(imx53ard|imx53qsb|imx51evk)" 9COMPATIBLE_MACHINE = "(imx53ard|imx53qsb|imx51evk)"
10 10
11SRC_URI = "file://imx-test-11.09.01.tar.gz \ 11TESTVERSION = "11.09.01"
12S = "${WORKDIR}/${PN}-${TESTVERSION}"
13
14SRC_URI = "file://imx-test-${TESTVERSION}.tar.gz \
12 file://0001-ENGR00158471-fix-ipu-unit-test-application-missing-i.patch \ 15 file://0001-ENGR00158471-fix-ipu-unit-test-application-missing-i.patch \
13 file://0002-ENGR00170223-vpu-Fix-encoder-with-rotation-90-or-270.patch \ 16 file://0002-ENGR00170223-vpu-Fix-encoder-with-rotation-90-or-270.patch \
14 file://0003-ENGR00162747-fix-asrc-sample-rate-convert-issue.patch" 17 file://0003-ENGR00162747-fix-asrc-sample-rate-convert-issue.patch"
15 18
19TESTPLATFORM_imx53ard = "IMX53"
20TESTPLATFORM_imx53qsb = "IMX53"
21TESTPLATFORM_imx51evk = "IMX51"
22
23do_compile() {
24 # LDFLAGS="" else modules' compilation fails
25 LDFLAGS="" make PLATFORM=${TESTPLATFORM} LINUXPATH=${STAGING_KERNEL_DIR} \
26 KBUILD_OUTPUT=${STAGING_KERNEL_DIR} CROSS_COMPILE=${TARGET_PREFIX} V=1
27}
28
29do_install() {
30 install -d ${D}/unit_tests
31 install -m 755 test-utils.sh ${D}/unit_tests/test-utils.sh
32 install -m 755 ${S}/platform/${TESTPLATFORM}/* ${D}/unit_tests/
33 install -d ${D}/unit_tests/modules
34 cp ${S}/module_test/*.ko ${D}/unit_tests/modules
35}
16 36
37FILES_${PN} += "/unit_tests"
38FILES_${PN}-dbg += "/unit_tests/.debug"