summaryrefslogtreecommitdiffstats
path: root/meta-ti-bsp/recipes-bsp/uio-module-drv/uio-module-drv-test_git.bb
diff options
context:
space:
mode:
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.bb35
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 @@
1DESCRIPTION = "Test code for user space IO (UIO) driver"
2
3include uio-module-drv.inc
4
5PR = "r1"
6
7COMPATIBLE_MACHINE = "omap-a15|ti33x|ti43x"
8PACKAGE_ARCH = "${MACHINE_ARCH}"
9
10DEVICE_NAME:omap-a15 = "am57xx"
11DEVICE_NAME:ti33x = "am33xx"
12DEVICE_NAME:ti43x = "am43xx"
13RDEPENDS:${PN} = "uio-module-drv"
14
15do_compile() {
16 oe_runmake -C ${S} test "DEVICE=${DEVICE_NAME}"
17}
18
19do_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
25do_install:append:omap-a15 () {
26 install -c -m 755 ${S}/test/prussdrv_test/test/pruss_uio_test ${D}${bindir}/.
27}
28
29do_install:append:ti33x () {
30 install -c -m 755 ${S}/test/prussdrv_test/test/pruss_uio_test ${D}${bindir}/.
31}
32
33do_install:append:ti43x () {
34 install -c -m 755 ${S}/test/prussdrv_test/test/pruss_uio_test ${D}${bindir}/.
35}