summaryrefslogtreecommitdiffstats
path: root/recipes-bsp/hyplnk-lld
diff options
context:
space:
mode:
Diffstat (limited to 'recipes-bsp/hyplnk-lld')
-rwxr-xr-xrecipes-bsp/hyplnk-lld/hyplnk-lld-test_git.bb32
-rw-r--r--recipes-bsp/hyplnk-lld/hyplnk-lld.inc24
-rwxr-xr-xrecipes-bsp/hyplnk-lld/hyplnk-lld_git.bb22
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 @@
1include hyplnk-lld.inc
2
3DEPENDS = "common-csl-ip hyplnk-lld"
4
5CHOICELIST = " yes \
6 no \
7"
8
9do_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
24do_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 @@
1DESCRIPTION = "TI Hyperlink Low Level Driver"
2LICENSE = "BSD-3-Clause"
3
4COMPATIBLE_MACHINE = "keystone"
5
6LLDNAME="hyplnk"
7
8LIC_FILES_CHKSUM = "file://${WORKDIR}/git/ti/drv/${LLDNAME}/COPYING.txt;md5=623325cc19e613a4e770fbb749922592"
9
10BRANCH="master"
11SRC_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
13SRCREV = "6910da379501984ecf27f8d23ba6fc6310fe387e"
14
15PV = "2.1.0"
16PR = "r0"
17
18DEVICELIST = " k2h \
19 k2k \
20 k2e \
21"
22
23BASEDIR = "${WORKDIR}/git"
24S = "${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 @@
1include hyplnk-lld.inc
2
3DEPENDS = "common-csl-ip"
4
5CHOICELIST = " yes \
6 no \
7"
8do_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
18do_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}