aboutsummaryrefslogtreecommitdiffstats
path: root/recipes-bsp
diff options
context:
space:
mode:
authorDaiane Angolini <daiane.angolini@freescale.com>2012-05-31 14:34:39 -0500
committerOtavio Salvador <otavio@ossystems.com.br>2012-05-31 16:41:50 -0300
commit629489e2f298d2f6d4f5ea71805125bc7efa15d5 (patch)
treead17a008546b2724d9cd9cc4cb3360ea1d4ffb4f /recipes-bsp
parent1f8aff8b32552539cf833d59407341eef6831679 (diff)
downloadmeta-fsl-arm-629489e2f298d2f6d4f5ea71805125bc7efa15d5.tar.gz
meta-fsl-arm-629489e2f298d2f6d4f5ea71805125bc7efa15d5.tar.bz2
meta-fsl-arm-629489e2f298d2f6d4f5ea71805125bc7efa15d5.zip
imx-test: Add imx-test.inc file
Rename imx-test_01.bb to imx-test_11.09.bb in order to use the Freescale release number of imx-test package. Add imx-test.inc to avoid dupplication of code if a new imx-test release was included. Signed-off-by: Daiane Angolini <daiane.angolini@freescale.com>
Diffstat (limited to 'recipes-bsp')
-rw-r--r--recipes-bsp/imx-test/imx-test.inc27
-rw-r--r--recipes-bsp/imx-test/imx-test_0.1.bb38
-rw-r--r--recipes-bsp/imx-test/imx-test_11.09.01.bb9
3 files changed, 36 insertions, 38 deletions
diff --git a/recipes-bsp/imx-test/imx-test.inc b/recipes-bsp/imx-test/imx-test.inc
new file mode 100644
index 0000000..09250a7
--- /dev/null
+++ b/recipes-bsp/imx-test/imx-test.inc
@@ -0,0 +1,27 @@
+SUMMARY = "Test programs for IMX BSP"
+DESCRIPTION = "Unit tests for the IMX BSP"
+SECTION = "base"
+LICENSE = "GPLv2"
+LIC_FILES_CHKSUM = "file://${COREBASE}/LICENSE;md5=3f40d7994397109285ec7b81fdeb3b58"
+
+INC_PR = "r1"
+
+PLATFORM_imx53ard = "IMX53"
+PLATFORM_imx53qsb = "IMX53"
+PLATFORM_imx51evk = "IMX51"
+
+SRC_URI = "file://imx-test-${PV}.tar.gz"
+
+do_compile() {
+ LDFLAGS="" make PLATFORM=${PLATFORM} 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/${PLATFORM}/* ${D}/unit_tests/
+}
+
+FILES_${PN} += "/unit_tests"
+FILES_${PN}-dbg += "/unit_tests/.debug"
diff --git a/recipes-bsp/imx-test/imx-test_0.1.bb b/recipes-bsp/imx-test/imx-test_0.1.bb
deleted file mode 100644
index 6de7ae2..0000000
--- a/recipes-bsp/imx-test/imx-test_0.1.bb
+++ /dev/null
@@ -1,38 +0,0 @@
-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 = "r3"
-
-COMPATIBLE_MACHINE = "(mx5)"
-
-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"
diff --git a/recipes-bsp/imx-test/imx-test_11.09.01.bb b/recipes-bsp/imx-test/imx-test_11.09.01.bb
new file mode 100644
index 0000000..063547b
--- /dev/null
+++ b/recipes-bsp/imx-test/imx-test_11.09.01.bb
@@ -0,0 +1,9 @@
+include imx-test.inc
+
+PR = "${INC_PR}.0"
+
+COMPATIBLE_MACHINE = "(mx5)"
+
+SRC_URI += "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"