]> code.ossystems Code Review - meta-freescale.git/commitdiff
imx-test: fix the recipe
authorEric Bénard <eric@eukrea.com>
Thu, 8 Mar 2012 13:20:50 +0000 (14:20 +0100)
committerOtavio Salvador <otavio@ossystems.com.br>
Thu, 8 Mar 2012 15:24:16 +0000 (15:24 +0000)
- 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>
meta-fsl-arm/recipes-bsp/imx-test/imx-test_0.1.bb

index bf632fe056afd2a2e46cd5a16597528c3e9fb7b9..aed28312eda52b55b1796f4170e9f45d929574fe 100644 (file)
@@ -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"