diff options
author | Sam Nelson <sam.nelson@ti.com> | 2014-11-06 04:17:04 +0000 |
---|---|---|
committer | Denys Dmytriyenko <denys@ti.com> | 2014-11-12 14:32:55 -0500 |
commit | 0e3d63eb9f1c8cce6228eb424eea1aa2aa835cb9 (patch) | |
tree | db17689778ced8c90259e99a1ade905e00507131 /recipes-bsp/hyplnk-lld | |
parent | c3343c1458adde878dc281eb795035eb5386c823 (diff) | |
download | meta-ti-0e3d63eb9f1c8cce6228eb424eea1aa2aa835cb9.tar.gz |
hyplnk-lld: Add new recipe for Hyperlink lld
- Provides low level driver for Hyperlink module
- Test recipe is used to build tests and examples using
the hyperlink library.
- Supports k2h, k2k & k2e
Signed-off-by: Sam Nelson <sam.nelson@ti.com>
Signed-off-by: Denys Dmytriyenko <denys@ti.com>
Diffstat (limited to 'recipes-bsp/hyplnk-lld')
-rwxr-xr-x | recipes-bsp/hyplnk-lld/hyplnk-lld-test_git.bb | 32 | ||||
-rw-r--r-- | recipes-bsp/hyplnk-lld/hyplnk-lld.inc | 24 | ||||
-rwxr-xr-x | recipes-bsp/hyplnk-lld/hyplnk-lld_git.bb | 22 |
3 files changed, 78 insertions, 0 deletions
diff --git a/recipes-bsp/hyplnk-lld/hyplnk-lld-test_git.bb b/recipes-bsp/hyplnk-lld/hyplnk-lld-test_git.bb new file mode 100755 index 00000000..8212c971 --- /dev/null +++ b/recipes-bsp/hyplnk-lld/hyplnk-lld-test_git.bb | |||
@@ -0,0 +1,32 @@ | |||
1 | include hyplnk-lld.inc | ||
2 | |||
3 | DEPENDS = "common-csl-ip hyplnk-lld" | ||
4 | |||
5 | CHOICELIST = " yes \ | ||
6 | no \ | ||
7 | " | ||
8 | |||
9 | do_compile () { | ||
10 | make -f makefile_armv7 clean PDK_INSTALL_PATH="${STAGING_INCDIR}" \ | ||
11 | HYPLNK_SRC_DIR="${S}" | ||
12 | for device in ${DEVICELIST} | ||
13 | do | ||
14 | for choice in ${CHOICELIST} | ||
15 | do | ||
16 | make -f makefile_armv7 tests examples \ | ||
17 | PDK_INSTALL_PATH="${STAGING_INCDIR}" \ | ||
18 | DEVICE="$device" HYPLNK_SRC_DIR="${S}" \ | ||
19 | USEDYNAMIC_LIB="$choice" | ||
20 | done | ||
21 | done | ||
22 | } | ||
23 | |||
24 | do_install () { | ||
25 | for device in ${DEVICELIST} | ||
26 | do | ||
27 | make -f makefile_armv7 installbin \ | ||
28 | PDK_INSTALL_PATH="${STAGING_INCDIR}" DEVICE="$device" \ | ||
29 | HYPLNK_SRC_DIR="${S}" \ | ||
30 | INSTALL_BIN_BASE_DIR="${D}/${bindir}" | ||
31 | done | ||
32 | } | ||
diff --git a/recipes-bsp/hyplnk-lld/hyplnk-lld.inc b/recipes-bsp/hyplnk-lld/hyplnk-lld.inc new file mode 100644 index 00000000..4c8bb32a --- /dev/null +++ b/recipes-bsp/hyplnk-lld/hyplnk-lld.inc | |||
@@ -0,0 +1,24 @@ | |||
1 | DESCRIPTION = "TI Hyperlink Low Level Driver" | ||
2 | LICENSE = "BSD-3-Clause" | ||
3 | |||
4 | COMPATIBLE_MACHINE = "keystone" | ||
5 | |||
6 | LLDNAME="hyplnk" | ||
7 | |||
8 | LIC_FILES_CHKSUM = "file://${WORKDIR}/git/ti/drv/${LLDNAME}/COPYING.txt;md5=623325cc19e613a4e770fbb749922592" | ||
9 | |||
10 | BRANCH="master" | ||
11 | SRC_URI = "git://git.ti.com/keystone-rtos/hyplnk-lld.git;destsuffix=git/ti/drv/${LLDNAME};protocol=git;branch=${BRANCH}" | ||
12 | # Following commit corresponds to tag DEV.HYPLNK_LLD.02.01.00.01 | ||
13 | SRCREV = "6910da379501984ecf27f8d23ba6fc6310fe387e" | ||
14 | |||
15 | PV = "2.1.0" | ||
16 | PR = "r0" | ||
17 | |||
18 | DEVICELIST = " k2h \ | ||
19 | k2k \ | ||
20 | k2e \ | ||
21 | " | ||
22 | |||
23 | BASEDIR = "${WORKDIR}/git" | ||
24 | S = "${BASEDIR}/ti/drv/${LLDNAME}" | ||
diff --git a/recipes-bsp/hyplnk-lld/hyplnk-lld_git.bb b/recipes-bsp/hyplnk-lld/hyplnk-lld_git.bb new file mode 100755 index 00000000..a582f981 --- /dev/null +++ b/recipes-bsp/hyplnk-lld/hyplnk-lld_git.bb | |||
@@ -0,0 +1,22 @@ | |||
1 | include hyplnk-lld.inc | ||
2 | |||
3 | DEPENDS = "common-csl-ip" | ||
4 | |||
5 | CHOICELIST = " yes \ | ||
6 | no \ | ||
7 | " | ||
8 | do_compile () { | ||
9 | make -f makefile_armv7 clean PDK_INSTALL_PATH="${STAGING_INCDIR}" \ | ||
10 | HYPLNK_SRC_DIR="${S}" | ||
11 | for device in ${DEVICELIST} | ||
12 | do | ||
13 | make -f makefile_armv7 lib PDK_INSTALL_PATH="${STAGING_INCDIR}"\ | ||
14 | DEVICE="$device" HYPLNK_SRC_DIR="${S}" | ||
15 | done | ||
16 | } | ||
17 | |||
18 | do_install () { | ||
19 | make -f makefile_armv7 install PDK_INSTALL_PATH="${STAGING_INCDIR}" \ | ||
20 | INSTALL_INC_BASE_DIR="${D}/${includedir}" \ | ||
21 | INSTALL_LIB_BASE_DIR="${D}${libdir}" HYPLNK_SRC_DIR="${S}" | ||
22 | } | ||