[meta-ti] Justin Sobota : pktlib: Clean up recipe

Arago Project git git at arago-project.org
Tue Apr 19 15:05:58 PDT 2016


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

Author: Justin Sobota <jsobota at ti.com>
Date:   Wed Apr 20 03:43:38 2016 +0000

pktlib: Clean up recipe

Signed-off-by: Justin Sobota <jsobota at ti.com>
Signed-off-by: Denys Dmytriyenko <denys at ti.com>

---

 recipes-bsp/pktlib/pktlib.inc    |   24 ++++++++++++++++++++++++
 recipes-bsp/pktlib/pktlib_git.bb |   18 ++----------------
 2 files changed, 26 insertions(+), 16 deletions(-)

diff --git a/recipes-bsp/pktlib/pktlib.inc b/recipes-bsp/pktlib/pktlib.inc
new file mode 100644
index 0000000..701a83f
--- /dev/null
+++ b/recipes-bsp/pktlib/pktlib.inc
@@ -0,0 +1,24 @@
+DESCRIPTION = "Provides library for handling packet descriptors for keystone devices"
+LICENSE = "BSD-3-Clause"
+LIC_FILES_CHKSUM = "file://docs/Doxyfile;md5=91d01dc3788e1f405f000b2089191a0a"
+
+COMPATIBLE_MACHINE = "keystone"
+PACKAGE_ARCH = "${MACHINE_ARCH}"
+
+PKTLIB_GIT_URI = "git://git.ti.com/keystone-rtos/pktlib.git"
+PKTLIB_GIT_PROTOCOL = "git"
+PKTLIB_GIT_BRANCH = "master"
+PKTLIB_GIT_DESTSUFFIX = "git/ti/runtime/pktlib"
+
+# Below commit ID corresponds to "DEV.PKTLIB.2.1.0.7"
+PKTLIB_SRCREV = "22f66931964c25f83d1971f7eb78902d10c17d8a"
+
+BRANCH = "${PKTLIB_GIT_BRANCH}"
+# Don't use DESTSUFFIX when cloning since repo contains ti/runtime/pktlib directory tree
+SRC_URI = "${PKTLIB_GIT_URI};protocol=${PKTLIB_GIT_PROTOCOL};branch=${BRANCH}"
+
+SRCREV = "${PKTLIB_SRCREV}"
+PV = "2.1.0.7"
+INC_PR = "r2"
+
+S = "${WORKDIR}/${PKTLIB_GIT_DESTSUFFIX}"
diff --git a/recipes-bsp/pktlib/pktlib_git.bb b/recipes-bsp/pktlib/pktlib_git.bb
index 341391e..dd66bd9 100644
--- a/recipes-bsp/pktlib/pktlib_git.bb
+++ b/recipes-bsp/pktlib/pktlib_git.bb
@@ -1,25 +1,11 @@
 DESCRIPTION = "Provides library for handling packet descriptors for keystone devices"
-LICENSE = "BSD-3-Clause"
 LIC_FILES_CHKSUM = "file://${WORKDIR}/git/COPYING.txt;md5=b7982a377c680ad71ca2fbb735982462"
 
 DEPENDS = "common-csl-ip rm-lld qmss-lld cppi-lld"
-COMPATIBLE_MACHINE = "keystone"
 
-PKTLIB_GIT_URI = "git://git.ti.com/keystone-rtos/pktlib.git"
-PKTLIB_GIT_PROTOCOL = "git"
-PKTLIB_GIT_BRANCH = "master"
+include pktlib.inc
 
-# Corresponds to DEV.PKTLIB.2.1.0.7
-PKTLIB_SRCREV = "22f66931964c25f83d1971f7eb78902d10c17d8a"
-
-BRANCH = "${PKTLIB_GIT_BRANCH}"
-SRC_URI = "${PKTLIB_GIT_URI};protocol=${PKTLIB_GIT_PROTOCOL};branch=${BRANCH}"
-SRCREV = "${PKTLIB_SRCREV}"
-
-PV = "2.1.0.7"
-PR = "r0"
-
-S = "${WORKDIR}/git/ti/runtime/pktlib"
+PR = "${INC_PR}.1"
 
 EXTRA_OEMAKE += "-f makefile_armv7 PDK_INSTALL_PATH=${STAGING_INCDIR} INSTALL_INC_BASE_DIR=${D}${includedir} INSTALL_LIB_BASE_DIR=${D}${libdir}"
 



More information about the meta-ti mailing list