[meta-ti] Jacob Stiffler : hyplnk-lld: Clean up recipes

Arago Project git git at arago-project.org
Wed Nov 4 06:57:59 PST 2015


Module: meta-ti
Branch: fido
Commit: 740fd7f424a4c8bf90a40fc5132f91d45d136697
URL:    http://arago-project.org/git/meta-ti.git?a=commit;h=740fd7f424a4c8bf90a40fc5132f91d45d136697

Author: Jacob Stiffler <j-stiffler at ti.com>
Date:   Wed Nov  4 01:47:15 2015 +0000

hyplnk-lld: Clean up recipes

* Use INC_PR to track recipe revisions
* Define variables for GIT SRC_URI parameters

Signed-off-by: Jacob Stiffler <j-stiffler at ti.com>
Signed-off-by: Denys Dmytriyenko <denys at ti.com>

---

 recipes-bsp/hyplnk-lld/hyplnk-lld-test_git.bb |    2 ++
 recipes-bsp/hyplnk-lld/hyplnk-lld.inc         |   21 +++++++++++++--------
 recipes-bsp/hyplnk-lld/hyplnk-lld_git.bb      |    2 ++
 3 files changed, 17 insertions(+), 8 deletions(-)

diff --git a/recipes-bsp/hyplnk-lld/hyplnk-lld-test_git.bb b/recipes-bsp/hyplnk-lld/hyplnk-lld-test_git.bb
index c33e2df..31b69c2 100644
--- a/recipes-bsp/hyplnk-lld/hyplnk-lld-test_git.bb
+++ b/recipes-bsp/hyplnk-lld/hyplnk-lld-test_git.bb
@@ -1,5 +1,7 @@
 include hyplnk-lld.inc
 
+PR = "${INC_PR}.0"
+
 DEPENDS = "common-csl-ip hyplnk-lld"
 
 do_compile () {
diff --git a/recipes-bsp/hyplnk-lld/hyplnk-lld.inc b/recipes-bsp/hyplnk-lld/hyplnk-lld.inc
index 70b5d80..09fec45 100644
--- a/recipes-bsp/hyplnk-lld/hyplnk-lld.inc
+++ b/recipes-bsp/hyplnk-lld/hyplnk-lld.inc
@@ -5,21 +5,26 @@ COMPATIBLE_MACHINE = "keystone"
 
 LLDNAME="hyplnk"
 
-LIC_FILES_CHKSUM = "file://${WORKDIR}/git/ti/drv/${LLDNAME}/COPYING.txt;md5=623325cc19e613a4e770fbb749922592"
+LIC_FILES_CHKSUM = "file://${WORKDIR}/${HYPLNK_GIT_DESTSUFFIX}/COPYING.txt;md5=623325cc19e613a4e770fbb749922592"
+
+HYPLNK_GIT_URI = "git://git.ti.com/keystone-rtos/hyplnk-lld.git"
+HYPLNK_GIT_PROTOCOL = "git"
+HYPLNK_GIT_BRANCH = "master"
+HYPLNK_GIT_DESTSUFFIX = "git/ti/drv/${LLDNAME}"
 
-BRANCH="master"
-SRC_URI = "git://git.ti.com/keystone-rtos/hyplnk-lld.git;destsuffix=git/ti/drv/${LLDNAME};protocol=git;branch=${BRANCH}"
-FILESPATH_prepend := "${THISDIR}/files"
 # Following commit corresponds to tag DEV.HYPLNK_LLD.02.01.00.05
-SRCREV = "ea2a634578626deaa69608a189d5d7e84e5b7127"
+HYPLNK_SRCREV = "ea2a634578626deaa69608a189d5d7e84e5b7127"
+
+BRANCH="${HYPLNK_GIT_BRANCH}"
+SRC_URI = "${HYPLNK_GIT_URI};destsuffix=${HYPLNK_GIT_DESTSUFFIX};protocol=${HYPLNK_GIT_PROTOCOL};branch=${BRANCH}"
+SRCREV = "${HYPLNK_SRCREV}"
 
 PV = "2.1.0.5"
-PR = "r1"
+INC_PR = "r2"
 
 DEVICELIST = " k2h \
                k2k \
                k2e \
 "
 
-BASEDIR = "${WORKDIR}/git"
-S = "${BASEDIR}/ti/drv/${LLDNAME}"
+S = "${WORKDIR}/${HYPLNK_GIT_DESTSUFFIX}"
diff --git a/recipes-bsp/hyplnk-lld/hyplnk-lld_git.bb b/recipes-bsp/hyplnk-lld/hyplnk-lld_git.bb
index 8be072c..e20ad1f 100644
--- a/recipes-bsp/hyplnk-lld/hyplnk-lld_git.bb
+++ b/recipes-bsp/hyplnk-lld/hyplnk-lld_git.bb
@@ -1,5 +1,7 @@
 include hyplnk-lld.inc
 
+PR = "${INC_PR}.0"
+
 DEPENDS = "common-csl-ip"
 
 SRC_URI += "file://init_hyplnk.sh"



More information about the meta-ti mailing list