[meta-ti] Jacob Stiffler : iqn2-lld: Clean up recipes
Arago Project git
git at arago-project.org
Wed Nov 4 07:00:01 PST 2015
Module: meta-ti
Branch: master
Commit: dc2dab062d1f12eab51ee8aae793ff7cdbcee2ac
URL: http://arago-project.org/git/meta-ti.git?a=commit;h=dc2dab062d1f12eab51ee8aae793ff7cdbcee2ac
Author: Jacob Stiffler <j-stiffler at ti.com>
Date: Wed Nov 4 01:47:17 2015 +0000
iqn2-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/iqn2-lld/iqn2-lld-test_git.bb | 2 ++
recipes-bsp/iqn2-lld/iqn2-lld.inc | 16 ++++++++++++----
recipes-bsp/iqn2-lld/iqn2-lld_git.bb | 2 ++
3 files changed, 16 insertions(+), 4 deletions(-)
diff --git a/recipes-bsp/iqn2-lld/iqn2-lld-test_git.bb b/recipes-bsp/iqn2-lld/iqn2-lld-test_git.bb
index f1aa9e4..f276c4b 100644
--- a/recipes-bsp/iqn2-lld/iqn2-lld-test_git.bb
+++ b/recipes-bsp/iqn2-lld/iqn2-lld-test_git.bb
@@ -4,6 +4,8 @@ DEPENDS = "common-csl-ip iqn2-lld dfe-lld"
include iqn2-lld.inc
+PR = "${INC_PR}.0"
+
EXTRA_OEMAKE = "-f makefile_armv7 PDK_INSTALL_PATH=${STAGING_INCDIR} IQN2_SRC_DIR=${WORKDIR}/git"
do_compile () {
diff --git a/recipes-bsp/iqn2-lld/iqn2-lld.inc b/recipes-bsp/iqn2-lld/iqn2-lld.inc
index 812d3f6..4a43a26 100644
--- a/recipes-bsp/iqn2-lld/iqn2-lld.inc
+++ b/recipes-bsp/iqn2-lld/iqn2-lld.inc
@@ -1,13 +1,21 @@
LIC_FILES_CHKSUM = "file://COPYING.txt;md5=5bdceac872dffdec915b819654ee23ea"
LICENSE = "BSD-3-Clause"
-BRANCH = "master"
-SRC_URI = "git://git.ti.com/keystone-rtos/iqn2-lld.git;destsuffix=git/ti/drv/iqn2;protocol=git;branch=${BRANCH}"
+IQN2_LLD_GIT_URI = "git://git.ti.com/keystone-rtos/iqn2-lld.git"
+IQN2_LLD_GIT_PROTOCOL = "git"
+IQN2_LLD_GIT_BRANCH = "master"
+IQN2_LLD_GIT_DESTSUFFIX = "git/ti/drv/iqn2"
+
# Following commit corresponds to DEV.IQN_LLD.01.00.00.08F
-SRCREV = "29d5358b944f1447c024263f86e8c71784440b99"
+IQN2_LLD_SRCREV = "29d5358b944f1447c024263f86e8c71784440b99"
+
+BRANCH = "${IQN2_LLD_GIT_BRANCH}"
+SRC_URI = "${IQN2_LLD_GIT_URI};destsuffix=${IQN2_LLD_GIT_DESTSUFFIX};protocol=${IQN2_LLD_GIT_PROTOCOL};branch=${BRANCH}"
+SRCREV = "${IQN2_LLD_SRCREV}"
PV = "1.0.0.8"
+INC_PR = "r1"
COMPATIBLE_MACHINE = "k2l-evm"
-S = "${WORKDIR}/git/ti/drv/iqn2"
+S = "${WORKDIR}/${IQN2_LLD_GIT_DESTSUFFIX}"
diff --git a/recipes-bsp/iqn2-lld/iqn2-lld_git.bb b/recipes-bsp/iqn2-lld/iqn2-lld_git.bb
index 19ffc05..4e68116 100644
--- a/recipes-bsp/iqn2-lld/iqn2-lld_git.bb
+++ b/recipes-bsp/iqn2-lld/iqn2-lld_git.bb
@@ -4,6 +4,8 @@ DEPENDS = "common-csl-ip"
include iqn2-lld.inc
+PR = "${INC_PR}.0"
+
EXTRA_OEMAKE = "-f makefile_armv7 PDK_INSTALL_PATH=${STAGING_INCDIR}"
do_compile () {
More information about the meta-ti
mailing list