Skip to contentSkip to conversation

hplib: Add recipe for TI high performance library

PATCH In review Sam Nelson 1 participant 2 messages Jan 10, 2015 – Jan 15, 2015

lore
Share & tools
lore

Sam Nelson

author
#0 lore raw

PATCH 1/1 hplib: Add recipe for TI high performance library

- Provides high performance library, kernel module, user space libraries and test binaries
- Supports devices k2h, k2k, k2l & k2e

---
 recipes-bsp/hplib/hplib-mod_git.bb  |   20 ++++++++++++++++++++
 recipes-bsp/hplib/hplib-test_git.bb |   30 ++++++++++++++++++++++++++++++
 recipes-bsp/hplib/hplib.inc         |   10 ++++++++++
 recipes-bsp/hplib/hplib_git.bb      |   30 ++++++++++++++++++++++++++++++
 4 files changed, 90 insertions(+)
 create mode 100644 recipes-bsp/hplib/hplib-mod_git.bb
 create mode 100644 recipes-bsp/hplib/hplib-test_git.bb
 create mode 100644 recipes-bsp/hplib/hplib.inc
 create mode 100644 recipes-bsp/hplib/hplib_git.bb
recipes-bsp/hplib/hplib-mod_git.bb new file +20 -0
new file mode 100644
index 0000000..acef1ce
@@ -0,0 +1,20 @@
+DESCRIPTION = "TI High Performance Library kernel module"
+LICENSE = "GPLv2"
+LIC_FILES_CHKSUM = "file://${WORKDIR}/git/ti/runtime/hplib/module/COPYING.txt;md5=c1c4d3453cddc5b7f0ce84a277e66779"
+
+DEPENDS = "hplib"
+
+include hplib.inc
+
+# This package builds a kernel module, use kernel PR as base and append a local
+MACHINE_KERNEL_PR_append = "a+gitr${SRCPV}"
+PR = "${MACHINE_KERNEL_PR}"
+
+S ="${WORKDIR}/git/ti/runtime/hplib/module"
+EXTRA_OEMAKE = "KDIR=${STAGING_KERNEL_DIR} PDK_INSTALL_PATH=${STAGING_INCDIR}"
+
+inherit module
+
+do_install () {
+	oe_runmake install INSTALL_MOD_PATH="${D}"
+}
recipes-bsp/hplib/hplib-test_git.bb new file +30 -0
new file mode 100644
index 0000000..574fa2a
@@ -0,0 +1,30 @@
+DESCRIPTION = "TI High performance library test binaries"
+LICENSE = "BSD-3-Clause"
+LIC_FILES_CHKSUM = "file://${WORKDIR}/git/ti/runtime/hplib/src/COPYING.txt;md5=b7982a377c680ad71ca2fbb735982462"
+
+DEPENDS = "common-csl-ip qmss-lld sa-lld pktlib hplib"
+
+include hplib.inc
+
+CHOICELIST = "yes no"
+
+S = "${WORKDIR}/git/ti/runtime/hplib"
+
+EXTRA_OEMAKE += '-f makefile_armv7 PDK_INSTALL_PATH=${STAGING_INCDIR}'
+
+do_compile () {
+	for device in ${DEVICELIST}
+	do
+		for choice in ${CHOICELIST}
+		do
+			oe_runmake tests HPLIB_SRC_DIR=${S} USEDYNAMIC_LIB=$choice DEVICE="$device"
+		done
+	done
+}
+
+do_install () {
+	for device in ${DEVICELIST}
+	do
+		oe_runmake installbin INSTALL_INC_BASE_DIR=${D}${includedir} INSTALL_LIB_BASE_DIR=${D}${libdir} INSTALL_BIN_BASE_DIR=${D}${bindir} DEVICE="$device"
+	done
+}
recipes-bsp/hplib/hplib.inc new file +10 -0
new file mode 100644
index 0000000..99254d1
@@ -0,0 +1,10 @@
+COMPATIBLE_MACHINE = "keystone"
+
+DEVICELIST = "k2h k2k k2l k2e"
+
+BRANCH = "master"
+SRC_URI = "git://git.ti.com/keystone-rtos/hplib.git;protocol=git;branch=${BRANCH}"
+
+# Below Commit ID corresponds to "DEV.HPLIB.01.01.00.04"
+SRCREV = "89d847bb8155f5727867d82f96978f89ea0a7d13"
+PV = "01.01.00.04"
recipes-bsp/hplib/hplib_git.bb new file +30 -0
new file mode 100644
index 0000000..fbb3004
@@ -0,0 +1,30 @@
+DESCRIPTION = "TI High performance libraries"
+LICENSE = "BSD-3-Clause"
+LIC_FILES_CHKSUM = "file://${WORKDIR}/git/ti/runtime/hplib/src/COPYING.txt;md5=b7982a377c680ad71ca2fbb735982462"
+
+DEPENDS = "common-csl-ip rm-lld qmss-lld sa-lld pktlib"
+
+include hplib.inc
+
+CHOICELIST = "yes no"
+
+S = "${WORKDIR}/git/ti/runtime/hplib"
+
+EXTRA_OEMAKE += "-f makefile_armv7 PDK_INSTALL_PATH=${STAGING_INCDIR}"
+
+do_compile () {
+	for device in ${DEVICELIST}
+	do
+		for choice in ${CHOICELIST}
+		do
+			oe_runmake lib HPLIB_SRC_DIR=${S} USEDYNAMIC_LIB=$choice DEVICE="$device"
+		done
+	done
+}
+
+do_install () {
+	for device in ${DEVICELIST}
+	do
+		oe_runmake install INSTALL_INC_BASE_DIR=${D}${includedir} INSTALL_LIB_BASE_DIR=${D}${libdir} INSTALL_BIN_BASE_DIR=${D}${bindir} DEVICE="$device"
+	done
+}
Signature · 1 line
1.7.9.5
#1 lore raw

Ping.

Quoted 161 lines

-----Original Message-----
From: Nelson, Sam
Sent: Friday, January 09, 2015 10:07 PM
To: [email protected]
Cc: Nelson, Sam
Subject: [PATCH] hplib: Add recipe for TI high performance library

- Provides high performance library, kernel module, user space libraries and test binaries
- Supports devices k2h, k2k, k2l & k2e

---
 recipes-bsp/hplib/hplib-mod_git.bb  |   20 ++++++++++++++++++++
 recipes-bsp/hplib/hplib-test_git.bb |   30
++++++++++++++++++++++++++++++
 recipes-bsp/hplib/hplib.inc         |   10 ++++++++++
 recipes-bsp/hplib/hplib_git.bb      |   30 ++++++++++++++++++++++++++++++
 4 files changed, 90 insertions(+)
 create mode 100644 recipes-bsp/hplib/hplib-mod_git.bb
 create mode 100644 recipes-bsp/hplib/hplib-test_git.bb
 create mode 100644 recipes-bsp/hplib/hplib.inc
 create mode 100644 recipes-bsp/hplib/hplib_git.bb
recipes-bsp/hplib/hplib- renamed from recipes-bsp/hplib/hplib-mod_git.bb +0 -0

mod_git.bb
new file mode 100644
index 0000000..acef1ce

recipes-bsp/hplib/hplib-mod_git.bb new file +3 -0
@@ -0,0 +1,20 @@
+DESCRIPTION = "TI High Performance Library kernel module"
+LICENSE = "GPLv2"
+LIC_FILES_CHKSUM =

"file://${WORKDIR}/git/ti/runtime/hplib/module/COPYING.txt;md5=c1c4d34 53cddc5b7f0ce84a277e66779"

recipes-bsp/hplib/hplib-mod_git.bb new file +6 -0
+
+DEPENDS = "hplib"
+
+include hplib.inc
+
+# This package builds a kernel module, use kernel PR as base and append a

local

recipes-bsp/hplib/hplib-mod_git.bb new file +5 -0
+MACHINE_KERNEL_PR_append = "a+gitr${SRCPV}"
+PR = "${MACHINE_KERNEL_PR}"
+
+S ="${WORKDIR}/git/ti/runtime/hplib/module"
+EXTRA_OEMAKE = "KDIR=${STAGING_KERNEL_DIR}

PDK_INSTALL_PATH=${STAGING_INCDIR}"

recipes-bsp/hplib/hplib-mod_git.bb new file +6 -0
+
+inherit module
+
+do_install () {
+	oe_runmake install INSTALL_MOD_PATH="${D}"
+}
recipes-bsp/hplib/hplib- renamed from recipes-bsp/hplib/hplib-test_git.bb +0 -0

test_git.bb
new file mode 100644
index 0000000..574fa2a

recipes-bsp/hplib/hplib-test_git.bb new file +3 -0
@@ -0,0 +1,30 @@
+DESCRIPTION = "TI High performance library test binaries"
+LICENSE = "BSD-3-Clause"
+LIC_FILES_CHKSUM =

"file://${WORKDIR}/git/ti/runtime/hplib/src/COPYING.txt;md5=b7982a377c 680ad71ca2fbb735982462"

recipes-bsp/hplib/hplib-test_git.bb new file +10 -0
+
+DEPENDS = "common-csl-ip qmss-lld sa-lld pktlib hplib"
+
+include hplib.inc
+
+CHOICELIST = "yes no"
+
+S = "${WORKDIR}/git/ti/runtime/hplib"
+
+EXTRA_OEMAKE += '-f makefile_armv7

PDK_INSTALL_PATH=${STAGING_INCDIR}'

recipes-bsp/hplib/hplib-test_git.bb new file +7 -0
+
+do_compile () {
+	for device in ${DEVICELIST}
+	do
+		for choice in ${CHOICELIST}
+		do
+			oe_runmake tests HPLIB_SRC_DIR=${S}

USEDYNAMIC_LIB=$choice DEVICE="$device"

recipes-bsp/hplib/hplib-test_git.bb new file +8 -0
+		done
+	done
+}
+
+do_install () {
+	for device in ${DEVICELIST}
+	do
+		oe_runmake installbin

INSTALL_INC_BASE_DIR=${D}${includedir} INSTALL_LIB_BASE_DIR=${D}${libdir} INSTALL_BIN_BASE_DIR=${D}${bindir} DEVICE="$device"

recipes-bsp/hplib/hplib-test_git.bb new file +2 -0
+	done
+}
recipes-bsp/hplib/hplib.inc new file +6 -0
new file mode 100644
index 0000000..99254d1
@@ -0,0 +1,10 @@
+COMPATIBLE_MACHINE = "keystone"
+
+DEVICELIST = "k2h k2k k2l k2e"
+
+BRANCH = "master"
+SRC_URI = "git://git.ti.com/keystone-

rtos/hplib.git;protocol=git;branch=${BRANCH}"

recipes-bsp/hplib/hplib.inc new file +4 -0
+
+# Below Commit ID corresponds to "DEV.HPLIB.01.01.00.04"
+SRCREV = "89d847bb8155f5727867d82f96978f89ea0a7d13"
+PV = "01.01.00.04"
recipes-bsp/hplib/hplib_git.bb new file +3 -0
new file mode 100644
index 0000000..fbb3004
@@ -0,0 +1,30 @@
+DESCRIPTION = "TI High performance libraries"
+LICENSE = "BSD-3-Clause"
+LIC_FILES_CHKSUM =

"file://${WORKDIR}/git/ti/runtime/hplib/src/COPYING.txt;md5=b7982a377c 680ad71ca2fbb735982462"

recipes-bsp/hplib/hplib_git.bb new file +10 -0
+
+DEPENDS = "common-csl-ip rm-lld qmss-lld sa-lld pktlib"
+
+include hplib.inc
+
+CHOICELIST = "yes no"
+
+S = "${WORKDIR}/git/ti/runtime/hplib"
+
+EXTRA_OEMAKE += "-f makefile_armv7

PDK_INSTALL_PATH=${STAGING_INCDIR}"

recipes-bsp/hplib/hplib_git.bb new file +7 -0
+
+do_compile () {
+	for device in ${DEVICELIST}
+	do
+		for choice in ${CHOICELIST}
+		do
+			oe_runmake lib HPLIB_SRC_DIR=${S}

USEDYNAMIC_LIB=$choice DEVICE="$device"

recipes-bsp/hplib/hplib_git.bb new file +8 -0
+		done
+	done
+}
+
+do_install () {
+	for device in ${DEVICELIST}
+	do
+		oe_runmake install

INSTALL_INC_BASE_DIR=${D}${includedir} INSTALL_LIB_BASE_DIR=${D}${libdir} INSTALL_BIN_BASE_DIR=${D}${bindir} DEVICE="$device"

recipes-bsp/hplib/hplib_git.bb new file +2 -1
+	done
+}
--

1.7.9.5