diff options
author | Eric Bénard <eric@eukrea.com> | 2012-03-08 14:20:50 +0100 |
---|---|---|
committer | Otavio Salvador <otavio@ossystems.com.br> | 2012-03-08 15:24:16 +0000 |
commit | a76a519c2d77bf6e21117ab487c72a6c67c1b699 (patch) | |
tree | f3736dff0ebbb2e9f720d1e734b91c16939c9e71 /recipes-bsp/imx-test | |
parent | 328e7723a8b8fe30b16a3a6ad41f284d3853e457 (diff) | |
download | meta-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.bb | 30 |
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 @@ | |||
1 | SUMMARY = "Test programs for IMX53 BSP" | 1 | SUMMARY = "Test programs for IMX BSP" |
2 | DESCRIPTION = "Unit tests for the IMX53 BSP" | 2 | DESCRIPTION = "Unit tests for the IMX BSP" |
3 | SECTION = "base" | 3 | SECTION = "base" |
4 | LICENSE = "MIT" | 4 | LICENSE = "MIT" |
5 | LIC_FILES_CHKSUM = "file://${COREBASE}/LICENSE;md5=3f40d7994397109285ec7b81fdeb3b58" | 5 | LIC_FILES_CHKSUM = "file://${COREBASE}/LICENSE;md5=3f40d7994397109285ec7b81fdeb3b58" |
6 | 6 | ||
7 | PR = "r2" | 7 | PR = "r3" |
8 | 8 | ||
9 | COMPATIBLE_MACHINE = "(imx53ard|imx53qsb|imx51evk)" | 9 | COMPATIBLE_MACHINE = "(imx53ard|imx53qsb|imx51evk)" |
10 | 10 | ||
11 | SRC_URI = "file://imx-test-11.09.01.tar.gz \ | 11 | TESTVERSION = "11.09.01" |
12 | S = "${WORKDIR}/${PN}-${TESTVERSION}" | ||
13 | |||
14 | SRC_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 | ||
19 | TESTPLATFORM_imx53ard = "IMX53" | ||
20 | TESTPLATFORM_imx53qsb = "IMX53" | ||
21 | TESTPLATFORM_imx51evk = "IMX51" | ||
22 | |||
23 | do_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 | |||
29 | do_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 | ||
37 | FILES_${PN} += "/unit_tests" | ||
38 | FILES_${PN}-dbg += "/unit_tests/.debug" | ||