1
0
mirror of https://git.yoctoproject.org/meta-ti synced 2026-07-17 06:48:07 +00:00

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 <sam.nelson@ti.com>
Signed-off-by: Denys Dmytriyenko <denys@ti.com>
This commit is contained in:
Sam Nelson
2015-02-27 00:08:25 +00:00
committed by Denys Dmytriyenko
parent b490d090a1
commit 6356441620
3 changed files with 97 additions and 0 deletions
+32
View File
@@ -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
}