diff options
Diffstat (limited to 'recipes-ti/netapi/netapi_git.bb')
| -rw-r--r-- | recipes-ti/netapi/netapi_git.bb | 32 |
1 files changed, 32 insertions, 0 deletions
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 @@ | |||
| 1 | DESCRIPTION = "Provides NETAPI module: TI user space network library" | ||
| 2 | |||
| 3 | COMPATIBLE_MACHINE = "keystone" | ||
| 4 | |||
| 5 | DEPENDS = "common-csl-ip rm-lld qmss-lld cppi-lld sa-lld hplib pktlib nwal-lld" | ||
| 6 | |||
| 7 | include netapi.inc | ||
| 8 | |||
| 9 | EXTRA_OEMAKE = "-f makefile_armv7 PDK_INSTALL_PATH=${STAGING_INCDIR}" | ||
| 10 | |||
| 11 | do_compile () { | ||
| 12 | # Now build the netapi | ||
| 13 | for device in ${DEVICELIST} | ||
| 14 | do | ||
| 15 | for choice in ${CHOICELIST} | ||
| 16 | do | ||
| 17 | oe_runmake clean NETAPI_SRC_DIR=${S} NETAPI_INC_DIR=${BASEDIR} \ | ||
| 18 | USEDYNAMIC_LIB="$choice" DEVICE="$device" | ||
| 19 | oe_runmake lib NETAPI_SRC_DIR=${S} NETAPI_INC_DIR=${BASEDIR} \ | ||
| 20 | USEDYNAMIC_LIB="$choice" DEVICE="$device" | ||
| 21 | done | ||
| 22 | done | ||
| 23 | } | ||
| 24 | |||
| 25 | do_install () { | ||
| 26 | for device in ${DEVICELIST} | ||
| 27 | do | ||
| 28 | oe_runmake install INSTALL_INC_BASE_DIR=${D}${includedir} \ | ||
| 29 | INSTALL_LIB_BASE_DIR=${D}${libdir} INSTALL_BIN_BASE_DIR=${D}${bindir} \ | ||
| 30 | SYSCONFDIR=${D}${sysconfdir} DEVICE="$device" | ||
| 31 | done | ||
| 32 | } | ||
