diff options
Diffstat (limited to 'recipes-bsp/imx-test/imx-test.inc')
-rw-r--r-- | recipes-bsp/imx-test/imx-test.inc | 58 |
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 @@ | |||
1 | SUMMARY = "Test programs for IMX BSP" | ||
2 | DESCRIPTION = "Unit tests for the IMX BSP" | ||
3 | SECTION = "base" | ||
4 | DEPENDS_mx5 = "virtual/kernel imx-lib imx-vpu" | ||
5 | DEPENDS_mx6q = "virtual/kernel imx-lib imx-vpu" | ||
6 | DEPENDS_mx6dl = "virtual/kernel imx-lib imx-vpu" | ||
7 | DEPENDS_mx6sl = "virtual/kernel imx-lib" | ||
8 | DEPENDS_mxs = "virtual/kernel" | ||
9 | |||
10 | LICENSE = "GPLv2" | ||
11 | LIC_FILES_CHKSUM = "file://${COREBASE}/meta/files/common-licenses/GPL-2.0;md5=801f80980d171dd6425610833a22dbe6" | ||
12 | |||
13 | PE = "1" | ||
14 | |||
15 | PLATFORM_mx6 = "IMX6Q" | ||
16 | PLATFORM_mx6sl = "IMX6S" | ||
17 | PLATFORM_mx53 = "IMX53" | ||
18 | PLATFORM_mx51 = "IMX51" | ||
19 | |||
20 | SRC_URI = "${FSL_MIRROR}/imx-test-${PV}.tar.gz" | ||
21 | |||
22 | inherit module-base | ||
23 | |||
24 | INHIBIT_PACKAGE_STRIP = "1" | ||
25 | INHIBIT_PACKAGE_DEBUG_SPLIT = "1" | ||
26 | |||
27 | INCLUDE_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 | ||
36 | addtask make_scripts after do_patch before do_compile | ||
37 | do_make_scripts[lockfiles] = "${TMPDIR}/kernel-scripts.lock" | ||
38 | do_make_scripts[deptask] = "do_populate_sysroot" | ||
39 | |||
40 | do_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 | |||
46 | do_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 | |||
55 | FILES_${PN} += "/unit_tests" | ||
56 | RDEPENDS_${PN} = "bash" | ||
57 | |||
58 | FILES_${PN}-dbg += "/unit_tests/.debug" | ||