From 6356441620e29db519a0e4d41af4c9ea8b1a9056 Mon Sep 17 00:00:00 2001 From: Sam Nelson Date: Fri, 27 Feb 2015 00:08:25 +0000 Subject: netapi: Add recipe for NETAPI module - Provide TI user space network library and test code - Supports k2h, k2k, k2l & k2e devices Signed-off-by: Sam Nelson Signed-off-by: Denys Dmytriyenko --- recipes-ti/netapi/netapi_git.bb | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 recipes-ti/netapi/netapi_git.bb (limited to 'recipes-ti/netapi/netapi_git.bb') diff --git a/recipes-ti/netapi/netapi_git.bb b/recipes-ti/netapi/netapi_git.bb new file mode 100644 index 00000000..d88e95ab --- /dev/null +++ b/recipes-ti/netapi/netapi_git.bb @@ -0,0 +1,32 @@ +DESCRIPTION = "Provides NETAPI module: TI user space network library" + +COMPATIBLE_MACHINE = "keystone" + +DEPENDS = "common-csl-ip rm-lld qmss-lld cppi-lld sa-lld hplib pktlib nwal-lld" + +include netapi.inc + +EXTRA_OEMAKE = "-f makefile_armv7 PDK_INSTALL_PATH=${STAGING_INCDIR}" + +do_compile () { +# Now build the netapi + for device in ${DEVICELIST} + do + for choice in ${CHOICELIST} + do + oe_runmake clean NETAPI_SRC_DIR=${S} NETAPI_INC_DIR=${BASEDIR} \ + USEDYNAMIC_LIB="$choice" DEVICE="$device" + oe_runmake lib NETAPI_SRC_DIR=${S} NETAPI_INC_DIR=${BASEDIR} \ + 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} \ + SYSCONFDIR=${D}${sysconfdir} DEVICE="$device" + done +} -- cgit v1.2.3-54-g00ecf