summaryrefslogtreecommitdiffstats
path: root/recipes-bsp/imx-test/imx-test.inc
diff options
context:
space:
mode:
Diffstat (limited to 'recipes-bsp/imx-test/imx-test.inc')
-rw-r--r--recipes-bsp/imx-test/imx-test.inc58
1 files changed, 58 insertions, 0 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..94dbdc3
--- /dev/null
+++ b/recipes-bsp/imx-test/imx-test.inc
@@ -0,0 +1,58 @@
1SUMMARY = "Test programs for IMX BSP"
2DESCRIPTION = "Unit tests for the IMX BSP"
3SECTION = "base"
4DEPENDS_mx5 = "virtual/kernel imx-lib imx-vpu"
5DEPENDS_mx6q = "virtual/kernel imx-lib imx-vpu"
6DEPENDS_mx6dl = "virtual/kernel imx-lib imx-vpu"
7DEPENDS_mx6sl = "virtual/kernel imx-lib"
8DEPENDS_mxs = "virtual/kernel"
9
10LICENSE = "GPLv2"
11LIC_FILES_CHKSUM = "file://${COREBASE}/meta/files/common-licenses/GPL-2.0;md5=801f80980d171dd6425610833a22dbe6"
12
13PE = "1"
14
15PLATFORM_mx6 = "IMX6Q"
16PLATFORM_mx6sl = "IMX6S"
17PLATFORM_mx53 = "IMX53"
18PLATFORM_mx51 = "IMX51"
19
20SRC_URI = "${FSL_MIRROR}/imx-test-${PV}.tar.gz"
21
22inherit module-base
23
24INHIBIT_PACKAGE_STRIP = "1"
25INHIBIT_PACKAGE_DEBUG_SPLIT = "1"
26
27INCLUDE_DIR="-I${STAGING_INCDIR} \
28 -I${S}/include \
29 -I${STAGING_KERNEL_DIR}/include/uapi \
30 -I${STAGING_KERNEL_DIR}/include \
31 -I${STAGING_KERNEL_DIR}/arch/arm/include \
32 -I${STAGING_KERNEL_DIR}/drivers/mxc/security/rng/include \
33 -I${STAGING_KERNEL_DIR}/drivers/mxc/security/sahara2/include"
34
35# Required so the fixdep binary is generated
36addtask make_scripts after do_patch before do_compile
37do_make_scripts[lockfiles] = "${TMPDIR}/kernel-scripts.lock"
38do_make_scripts[deptask] = "do_populate_sysroot"
39
40do_compile() {
41 LDFLAGS="" make PLATFORM=${PLATFORM} LINUXPATH=${STAGING_KERNEL_DIR} \
42 KBUILD_OUTPUT=${STAGING_KERNEL_DIR} CROSS_COMPILE=${TARGET_PREFIX} V=1 \
43 INC="${INCLUDE_DIR}"
44}
45
46do_install() {
47 install -d ${D}/unit_tests
48 install -m 755 test-utils.sh ${D}/unit_tests/test-utils.sh
49 install -m 755 ${S}/platform/${PLATFORM}/* ${D}/unit_tests/
50 if [ -e ${WORKDIR}/clocks.sh ]; then
51 install -m 755 ${WORKDIR}/clocks.sh ${D}/unit_tests/clocks.sh
52 fi
53}
54
55FILES_${PN} += "/unit_tests"
56RDEPENDS_${PN} = "bash"
57
58FILES_${PN}-dbg += "/unit_tests/.debug"