[meta-ti] Sam Nelson : nwal-lld: Add recipes for Network abstraction layer low level driver and test code

Arago Project git git at arago-project.org
Tue Jan 27 17:02:35 PST 2015


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

Author: Sam Nelson <sam.nelson at ti.com>
Date:   Thu Jan 22 11:25:16 2015 +0000

nwal-lld: Add recipes for Network abstraction layer low level driver and test code

- Provide Network abstraction layer for keystone devices.
- Supports k2h, k2k, k2l & k2e devices.

Signed-off-by: Sam Nelson <sam.nelson at ti.com>
Signed-off-by: Denys Dmytriyenko <denys at ti.com>

---

 recipes-bsp/nwal-lld/nwal-lld-test_git.bb |   25 +++++++++++++++++++++++++
 recipes-bsp/nwal-lld/nwal-lld.inc         |   18 ++++++++++++++++++
 recipes-bsp/nwal-lld/nwal-lld_git.bb      |   25 +++++++++++++++++++++++++
 3 files changed, 68 insertions(+), 0 deletions(-)

diff --git a/recipes-bsp/nwal-lld/nwal-lld-test_git.bb b/recipes-bsp/nwal-lld/nwal-lld-test_git.bb
new file mode 100644
index 0000000..3813df9
--- /dev/null
+++ b/recipes-bsp/nwal-lld/nwal-lld-test_git.bb
@@ -0,0 +1,25 @@
+DESCRIPTION = "TI Network Abstraction Layer unit test binaries"
+
+DEPENDS = "common-csl-ip rm-lld qmss-lld hplib pa-lld sa-lld pktlib nwal-lld"
+
+include nwal-lld.inc
+
+EXTRA_OEMAKE += "-f makefile_armv7 PDK_INSTALL_PATH=${STAGING_INCDIR}"
+
+do_compile () {
+	for device in ${DEVICELIST}
+	do
+		for choice in ${CHOICELIST}
+		do
+			oe_runmake clean NWAL_INC_DIR=${BASEDIR} NWAL_SRC_DIR=${S} USEDYNAMIC_LIB="$choice" DEVICE="$device"
+			oe_runmake tests NWAL_INC_DIR=${BASEDIR} NWAL_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
+}
diff --git a/recipes-bsp/nwal-lld/nwal-lld.inc b/recipes-bsp/nwal-lld/nwal-lld.inc
new file mode 100644
index 0000000..1e77140
--- /dev/null
+++ b/recipes-bsp/nwal-lld/nwal-lld.inc
@@ -0,0 +1,18 @@
+LICENSE = "BSD-3-Clause"
+LIC_FILES_CHKSUM = "file://${WORKDIR}/git/COPYING.txt;md5=b7982a377c680ad71ca2fbb735982462"
+
+COMPATIBLE_MACHINE = "keystone"
+
+BRANCH = "master"
+SRC_URI = "git://git.ti.com/keystone-rtos/nwal-lld.git;protocol=git;branch=${BRANCH}"
+
+# Below commit ID corresponds to "DEV.NWAL.02.01.00.04A"
+SRCREV = "099a9191e642c7732760078bf5af1e3c6ca0197b"
+PV = "02.01.00.04"
+
+BASEDIR = "${WORKDIR}/git"
+S = "${BASEDIR}/ti/drv/nwal"
+
+DEVICELIST = "k2h k2k k2l k2e"
+
+CHOICELIST = "yes no"
diff --git a/recipes-bsp/nwal-lld/nwal-lld_git.bb b/recipes-bsp/nwal-lld/nwal-lld_git.bb
new file mode 100644
index 0000000..da09730
--- /dev/null
+++ b/recipes-bsp/nwal-lld/nwal-lld_git.bb
@@ -0,0 +1,25 @@
+DESCRIPTION = "TI Network abstraction layer LLD library "
+
+DEPENDS = "common-csl-ip rm-lld qmss-lld hplib pa-lld sa-lld pktlib"
+
+include nwal-lld.inc
+
+EXTRA_OEMAKE += "-f makefile_armv7 PDK_INSTALL_PATH=${STAGING_INCDIR}"
+
+do_compile () {
+	for device in ${DEVICELIST}
+	do
+		for choice in ${CHOICELIST}
+		do
+			oe_runmake clean NWAL_INC_DIR=${BASEDIR} NWAL_SRC_DIR=${S} USEDYNAMIC_LIB="$choice" DEVICE="$device"
+			oe_runmake lib NWAL_INC_DIR=${BASEDIR} NWAL_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
+}



More information about the meta-ti mailing list