Skip to contentSkip to conversation

pktlib: Adds recipe for pklib component

PATCH Superseded Sam Nelson 2 participants 2 messages Jan 7, 2015

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore

Sam Nelson

author
#0 lore raw

PATCH 1/1 pktlib: Adds recipe for pklib component

- pktlib: provides library for handling packet descriptor for keystone devices

---
 recipes-bsp/pktlib/pktlib_git.bb |   25 +++++++++++++++++++++++++
 1 file changed, 25 insertions(+)
 create mode 100644 recipes-bsp/pktlib/pktlib_git.bb
recipes-bsp/pktlib/pktlib_git.bb new file +25 -0
new file mode 100644
index 0000000..8cd43d9
@@ -0,0 +1,25 @@
+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"
+
+BRANCH = "master"
+SRC_URI = "git://git.ti.com/keystone-rtos/pktlib.git;protocol=git;branch=${BRANCH}"
+
+# Corresponds to DEV.PKTLIB.2.1.0.4
+SRCREV = "a9aa56afed54b0a04f36d2fdb248cad5dcac6ff6"
+PV = "2.1.0.4"
+PR = "r0"
+
+S = "${WORKDIR}/git//ti/runtime/pktlib"
+
+do_compile () {
+#   Now build the pktlib in the updated directory
+    make -f makefile_armv7 clean lib PDK_INSTALL_PATH=${STAGING_INCDIR}
+}
+
+do_install () {
+    make -f makefile_armv7 install PDK_INSTALL_PATH=${STAGING_INCDIR} INSTALL_INC_BASE_DIR=${D}${includedir} INSTALL_LIB_BASE_DIR=${D}${libdir}
+}
Signature · 1 line
1.7.9.5
#1 lore raw
Quoted 21 lines · Sam Nelson

- pktlib: provides library for handling packet descriptor for keystone devices

---
recipes-bsp/pktlib/pktlib_git.bb | 25 +++++++++++++++++++++++++

1 file changed, 25 insertions(+)

create mode 100644 recipes-bsp/pktlib/pktlib_git.bb

recipes-bsp/pktlib/pktlib_git.bb new file +4 -0
new file mode 100644
index 0000000..8cd43d9
@@ -0,0 +1,25 @@
+DESCRIPTION = "Provides library for handling packet descriptors for keystone devices"
+LICENSE = "BSD-3-Clause"
+LIC_FILES_CHKSUM = "file://${WORKDIR}/git/COPYING.txt;md5=b7982a377c680ad71ca2fbb735982462"
+

recipes-bsp/pktlib/pktlib_git.bb line 14

Quoted 10 lines
recipes-bsp/pktlib/pktlib_git.bb new file +10 -0
+DEPENDS="common-csl-ip rm-lld qmss-lld cppi-lld"
+COMPATIBLE_MACHINE = "keystone"
+
+BRANCH = "master"
+SRC_URI = "git://git.ti.com/keystone-rtos/pktlib.git;protocol=git;branch=${BRANCH}"
+
+# Corresponds to DEV.PKTLIB.2.1.0.4
+SRCREV = "a9aa56afed54b0a04f36d2fdb248cad5dcac6ff6"
+PV = "2.1.0.4"
+PR = “r0"

drop PR

recipes-bsp/pktlib/pktlib_git.bb line 16

Quoted 2 lines
recipes-bsp/pktlib/pktlib_git.bb new file +2 -0
+
+S = "${WORKDIR}/git//ti/runtime/pktlib”
                      ^^

get rid of double slash

recipes-bsp/pktlib/pktlib_git.bb line 25

Quoted 9 lines
recipes-bsp/pktlib/pktlib_git.bb new file +9 -0
+
+do_compile () {
+#   Now build the pktlib in the updated directory
+    make -f makefile_armv7 clean lib PDK_INSTALL_PATH=${STAGING_INCDIR}
+}
+
+do_install () {
+    make -f makefile_armv7 install PDK_INSTALL_PATH=${STAGING_INCDIR} INSTALL_INC_BASE_DIR=${D}${includedir} INSTALL_LIB_BASE_DIR=${D}${libdir}
+}

you might want to use oe_runmake and EXTRA_OEMAKE to accommodate the above make calls.

Quoted 8 lines
Signature · 7 lines
1.7.9.5

-- 
_______________________________________________
meta-ti mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/meta-ti