diff options
Diffstat (limited to 'meta-ti-bsp/recipes-bsp/uio-module-drv/uio-module-drv-test_git.bb')
-rw-r--r-- | meta-ti-bsp/recipes-bsp/uio-module-drv/uio-module-drv-test_git.bb | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/meta-ti-bsp/recipes-bsp/uio-module-drv/uio-module-drv-test_git.bb b/meta-ti-bsp/recipes-bsp/uio-module-drv/uio-module-drv-test_git.bb new file mode 100644 index 00000000..dc17a1e9 --- /dev/null +++ b/meta-ti-bsp/recipes-bsp/uio-module-drv/uio-module-drv-test_git.bb | |||
@@ -0,0 +1,35 @@ | |||
1 | DESCRIPTION = "Test code for user space IO (UIO) driver" | ||
2 | |||
3 | include uio-module-drv.inc | ||
4 | |||
5 | PR = "r1" | ||
6 | |||
7 | COMPATIBLE_MACHINE = "omap-a15|ti33x|ti43x" | ||
8 | PACKAGE_ARCH = "${MACHINE_ARCH}" | ||
9 | |||
10 | DEVICE_NAME:omap-a15 = "am57xx" | ||
11 | DEVICE_NAME:ti33x = "am33xx" | ||
12 | DEVICE_NAME:ti43x = "am43xx" | ||
13 | RDEPENDS:${PN} = "uio-module-drv" | ||
14 | |||
15 | do_compile() { | ||
16 | oe_runmake -C ${S} test "DEVICE=${DEVICE_NAME}" | ||
17 | } | ||
18 | |||
19 | do_install() { | ||
20 | install -d ${D}${bindir}/ | ||
21 | install -c -m 755 ${S}/test/uio_mem_test ${D}${bindir}/. | ||
22 | install -c -m 755 ${S}/test/uio_int_test ${D}${bindir}/. | ||
23 | } | ||
24 | |||
25 | do_install:append:omap-a15 () { | ||
26 | install -c -m 755 ${S}/test/prussdrv_test/test/pruss_uio_test ${D}${bindir}/. | ||
27 | } | ||
28 | |||
29 | do_install:append:ti33x () { | ||
30 | install -c -m 755 ${S}/test/prussdrv_test/test/pruss_uio_test ${D}${bindir}/. | ||
31 | } | ||
32 | |||
33 | do_install:append:ti43x () { | ||
34 | install -c -m 755 ${S}/test/prussdrv_test/test/pruss_uio_test ${D}${bindir}/. | ||
35 | } | ||