diff options
author | Sam Nelson <sam.nelson@ti.com> | 2015-02-11 04:56:52 +0000 |
---|---|---|
committer | Denys Dmytriyenko <denys@ti.com> | 2015-02-24 16:09:53 -0500 |
commit | 22b8d340af9493c2ab2eece65919dace2e2010aa (patch) | |
tree | 54241eeddc947625f4d681b5329e05fa00d16b9b | |
parent | b615fa4a504151885220f0a9620b29d7e93bf1bf (diff) | |
download | meta-ti-22b8d340af9493c2ab2eece65919dace2e2010aa.tar.gz |
srio-lld: Add recipe for srio peripheral low level driver
- Provides user space low level driver for srio peripheral
- Devices supported k2h & k2k
Signed-off-by: Sam Nelson <sam.nelson@ti.com>
Signed-off-by: Denys Dmytriyenko <denys@ti.com>
-rw-r--r-- | recipes-bsp/srio-lld/srio-lld-test_git.bb | 27 | ||||
-rw-r--r-- | recipes-bsp/srio-lld/srio-lld.inc | 16 | ||||
-rw-r--r-- | recipes-bsp/srio-lld/srio-lld_git.bb | 19 |
3 files changed, 62 insertions, 0 deletions
diff --git a/recipes-bsp/srio-lld/srio-lld-test_git.bb b/recipes-bsp/srio-lld/srio-lld-test_git.bb new file mode 100644 index 00000000..7cf254e1 --- /dev/null +++ b/recipes-bsp/srio-lld/srio-lld-test_git.bb | |||
@@ -0,0 +1,27 @@ | |||
1 | DESCRIPTION = "TI SRIO peripheral low level driver unit test and example binaries" | ||
2 | COMPATIBLE_MACHINE = "keystone" | ||
3 | DEPENDS="common-csl-ip rm-lld cppi-lld qmss-lld srio-lld cmem" | ||
4 | |||
5 | include srio-lld.inc | ||
6 | |||
7 | CHOICELIST = "yes no" | ||
8 | |||
9 | do_compile () { | ||
10 | # Now build the lld in the updated directory | ||
11 | for device in ${DEVICELIST} | ||
12 | do | ||
13 | oe_runmake clean DEVICE="$device" SRIO_SRC_DIR=${S} | ||
14 | for choice in ${CHOICELIST} | ||
15 | do | ||
16 | oe_runmake tests DEVICE="$device" SRIO_SRC_DIR=${S} USEDYNAMIC_LIB="$choice" | ||
17 | oe_runmake examples DEVICE="$device" SRIO_SRC_DIR=${S} USEDYNAMIC_LIB="$choice" | ||
18 | done | ||
19 | done | ||
20 | } | ||
21 | |||
22 | do_install () { | ||
23 | for device in ${DEVICELIST} | ||
24 | do | ||
25 | oe_runmake installbin DEVICE="$device" SRIO_SRC_DIR=${S} INSTALL_BIN_BASE_DIR=${D}${bindir} | ||
26 | done | ||
27 | } | ||
diff --git a/recipes-bsp/srio-lld/srio-lld.inc b/recipes-bsp/srio-lld/srio-lld.inc new file mode 100644 index 00000000..1ae21287 --- /dev/null +++ b/recipes-bsp/srio-lld/srio-lld.inc | |||
@@ -0,0 +1,16 @@ | |||
1 | LICENSE = "BSD-3-Clause" | ||
2 | LIC_FILES_CHKSUM = "file://${WORKDIR}/git/ti/drv/srio/srio_drv.h;beginline=1;endline=41;md5=469096088e072d883ff7eef301b34093" | ||
3 | |||
4 | BRANCH = "master" | ||
5 | SRC_URI = "git://git.ti.com/keystone-rtos/srio-lld.git;destsuffix=git/ti/drv/srio;protocol=git;branch=${BRANCH}" | ||
6 | |||
7 | # commit ID corresponding to DEV.SRIO_LLD.02.00.00.11 | ||
8 | SRCREV = "2d0efea281222055b3b828c79e57102edaae9db7" | ||
9 | PV = "02.00.00.11" | ||
10 | |||
11 | DEVICELIST = "k2h k2k" | ||
12 | |||
13 | BASEDIR = "${WORKDIR}/git" | ||
14 | S = "${BASEDIR}/ti/drv/srio" | ||
15 | |||
16 | EXTRA_OEMAKE = "-f makefile_armv7 PDK_INSTALL_PATH=${STAGING_INCDIR}" | ||
diff --git a/recipes-bsp/srio-lld/srio-lld_git.bb b/recipes-bsp/srio-lld/srio-lld_git.bb new file mode 100644 index 00000000..9ff845b2 --- /dev/null +++ b/recipes-bsp/srio-lld/srio-lld_git.bb | |||
@@ -0,0 +1,19 @@ | |||
1 | DESCRIPTION = "TI SRIO peripheral low level driver" | ||
2 | COMPATIBLE_MACHINE = "keystone" | ||
3 | |||
4 | DEPENDS="common-csl-ip rm-lld cppi-lld" | ||
5 | |||
6 | include srio-lld.inc | ||
7 | |||
8 | do_compile () { | ||
9 | # Now build the lld | ||
10 | oe_runmake clean | ||
11 | for device in ${DEVICELIST} | ||
12 | do | ||
13 | oe_runmake lib DEVICE="${device}" | ||
14 | done | ||
15 | } | ||
16 | |||
17 | do_install () { | ||
18 | oe_runmake install INSTALL_INC_BASE_DIR=${D}${includedir} INSTALL_LIB_BASE_DIR=${D}${libdir} | ||
19 | } | ||