From e3c7515370ba6b3eedebe52eb559bd46d5df1ab9 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Eric=20B=C3=A9nard?= Date: Thu, 8 Mar 2012 14:20:50 +0100 Subject: [PATCH] imx-test: fix the recipe MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit - this recipe actually doesn't compile. - this patch fix this and package the tests. - currently only compile tested. Signed-off-by: Eric Bénard --- .../recipes-bsp/imx-test/imx-test_0.1.bb | 30 ++++++++++++++++--- 1 file changed, 26 insertions(+), 4 deletions(-) diff --git a/meta-fsl-arm/recipes-bsp/imx-test/imx-test_0.1.bb b/meta-fsl-arm/recipes-bsp/imx-test/imx-test_0.1.bb index bf632fe0..aed28312 100644 --- a/meta-fsl-arm/recipes-bsp/imx-test/imx-test_0.1.bb +++ b/meta-fsl-arm/recipes-bsp/imx-test/imx-test_0.1.bb @@ -1,16 +1,38 @@ -SUMMARY = "Test programs for IMX53 BSP" -DESCRIPTION = "Unit tests for the IMX53 BSP" +SUMMARY = "Test programs for IMX BSP" +DESCRIPTION = "Unit tests for the IMX BSP" SECTION = "base" LICENSE = "MIT" LIC_FILES_CHKSUM = "file://${COREBASE}/LICENSE;md5=3f40d7994397109285ec7b81fdeb3b58" -PR = "r2" +PR = "r3" COMPATIBLE_MACHINE = "(imx53ard|imx53qsb|imx51evk)" -SRC_URI = "file://imx-test-11.09.01.tar.gz \ +TESTVERSION = "11.09.01" +S = "${WORKDIR}/${PN}-${TESTVERSION}" + +SRC_URI = "file://imx-test-${TESTVERSION}.tar.gz \ file://0001-ENGR00158471-fix-ipu-unit-test-application-missing-i.patch \ file://0002-ENGR00170223-vpu-Fix-encoder-with-rotation-90-or-270.patch \ file://0003-ENGR00162747-fix-asrc-sample-rate-convert-issue.patch" +TESTPLATFORM_imx53ard = "IMX53" +TESTPLATFORM_imx53qsb = "IMX53" +TESTPLATFORM_imx51evk = "IMX51" + +do_compile() { + # LDFLAGS="" else modules' compilation fails + LDFLAGS="" make PLATFORM=${TESTPLATFORM} LINUXPATH=${STAGING_KERNEL_DIR} \ + KBUILD_OUTPUT=${STAGING_KERNEL_DIR} CROSS_COMPILE=${TARGET_PREFIX} V=1 +} + +do_install() { + install -d ${D}/unit_tests + install -m 755 test-utils.sh ${D}/unit_tests/test-utils.sh + install -m 755 ${S}/platform/${TESTPLATFORM}/* ${D}/unit_tests/ + install -d ${D}/unit_tests/modules + cp ${S}/module_test/*.ko ${D}/unit_tests/modules +} +FILES_${PN} += "/unit_tests" +FILES_${PN}-dbg += "/unit_tests/.debug" -- 2.40.1