Return-Path: Received: by yocto-www.yoctoproject.org (Postfix, from userid 118) id 55A8BE00853; Thu, 19 Feb 2015 19:36:06 -0800 (PST) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on yocto-www.yoctoproject.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 X-Spam-HAM-Report: * -5.0 RCVD_IN_DNSWL_HI RBL: Sender listed at http://www.dnswl.org/, high * trust * [192.94.94.41 listed in list.dnswl.org] * -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% * [score: 0.0000] Received: from bear.ext.ti.com (bear.ext.ti.com [192.94.94.41]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id 187C4E00837 for ; Thu, 19 Feb 2015 19:36:02 -0800 (PST) Received: from dlelxv90.itg.ti.com ([172.17.2.17]) by bear.ext.ti.com (8.13.7/8.13.7) with ESMTP id t1K3a1Mw016766 for ; Thu, 19 Feb 2015 21:36:01 -0600 Received: from DLEE70.ent.ti.com (dlee70.ent.ti.com [157.170.170.113]) by dlelxv90.itg.ti.com (8.14.3/8.13.8) with ESMTP id t1K3a0t0025091 for ; Thu, 19 Feb 2015 21:36:00 -0600 Received: from dlep33.itg.ti.com (157.170.170.75) by DLEE70.ent.ti.com (157.170.170.113) with Microsoft SMTP Server id 14.3.224.2; Thu, 19 Feb 2015 21:35:59 -0600 Received: from udb0862859.am.dhcp.ti.com (ileax41-snat.itg.ti.com [10.172.224.153]) by dlep33.itg.ti.com (8.14.3/8.13.8) with ESMTP id t1K3ZwEL027457; Thu, 19 Feb 2015 21:35:59 -0600 From: Sam Nelson To: Date: Thu, 19 Feb 2015 22:35:55 -0500 Message-ID: <1424403355-4377-1-git-send-email-sam.nelson@ti.com> X-Mailer: git-send-email 1.7.9.5 MIME-Version: 1.0 Subject: [PATCH] netapi: Add recipe for NETAPI module X-BeenThere: meta-ti@yoctoproject.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Usage and development list for the meta-ti layer List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 20 Feb 2015 03:36:06 -0000 Content-Type: text/plain - Provide TI user space network library and test code - Supports k2h, k2k, k2l & k2e devices Signed-off-by: Sam Nelson --- recipes-ti/netapi/netapi-test_git.bb | 48 ++++++++++++++++++++++++++++++++++ recipes-ti/netapi/netapi.inc | 15 +++++++++++ recipes-ti/netapi/netapi_git.bb | 35 +++++++++++++++++++++++++ 3 files changed, 98 insertions(+) create mode 100644 recipes-ti/netapi/netapi-test_git.bb create mode 100644 recipes-ti/netapi/netapi.inc create mode 100644 recipes-ti/netapi/netapi_git.bb diff --git a/recipes-ti/netapi/netapi-test_git.bb b/recipes-ti/netapi/netapi-test_git.bb new file mode 100644 index 0000000..4107366 --- /dev/null +++ b/recipes-ti/netapi/netapi-test_git.bb @@ -0,0 +1,48 @@ +DESCRIPTION = "Provides test and application binaries using NETAPI module" +COMPATIBLE_MACHINE = "keystone" +DEPENDS = "netapi ipsecmgr" + +include netapi.inc + +BASEDIR = "${WORKDIR}/git" +S = "${BASEDIR}/ti/runtime/netapi" + +do_compile () { +# Build the netapi binaries + for device in ${DEVICELIST} + do + for choice in ${CHOICELIST} + do + oe_runmake tests NETAPI_SRC_DIR=${S} NETAPI_INC_DIR=${BASEDIR} \ + USEDYNAMIC_LIB="$choice" DEVICE="$device" + done + +# Now build the netapi appplications + cd ${S}/applications/ipsec_offload/ipsecmgr/build + make clean app PDK_INSTALL_PATH=${STAGING_INCDIR} NETAPI_SRC_DIR=${S} DEVICE="$device" + + cd ${S}/applications/ipsec_offload/config-app/build + make clean app PDK_INSTALL_PATH=${STAGING_INCDIR} DEVICE="$device" + cd ${S} + 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} \ + SYSCONFDIR=${D}${sysconfdir} DEVICE="$device" + + cd ${S}/applications/ipsec_offload/ipsecmgr/build + make install PDK_INSTALL_PATH=${STAGING_INCDIR} \ + INSTALL_BIN_BASE_DIR=${D}${bindir} SYSCONFDIR=${D}${sysconfdir} \ + DEVICE="$device" + + cd ${S}/applications/ipsec_offload/config-app/build + make install PDK_INSTALL_PATH=${STAGING_INCDIR} \ + INSTALL_BIN_BASE_DIR=${D}${bindir} SYSCONFDIR=${D}${sysconfdir} \ + DEVICE="$device" + cd ${S} + done +} diff --git a/recipes-ti/netapi/netapi.inc b/recipes-ti/netapi/netapi.inc new file mode 100644 index 0000000..4bed670 --- /dev/null +++ b/recipes-ti/netapi/netapi.inc @@ -0,0 +1,15 @@ +LICENSE = "BSD-3-Clause" +LIC_FILES_CHKSUM = "file://${WORKDIR}/git/COPYING.txt;md5=f2b4f162358b1ffaf3f2307287ca2074" + +BRANCH = "master" +SRC_URI = "git://git.ti.com/keystone-rtos/netapi.git;protocol=git;branch=${BRANCH}" + +# Below Commit ID corresponds to "DEV.NETAPI.01.01.00.04" +SRCREV= "dc08af268200908d3d8a456ac852c65c53d2fd12" +PV = "01.01.00.04" + +DEVICELIST = "k2h k2k k2l k2e" + +CHOICELIST = "yes no" + +EXTRA_OEMAKE += "-f makefile_armv7 PDK_INSTALL_PATH=${STAGING_INCDIR}" diff --git a/recipes-ti/netapi/netapi_git.bb b/recipes-ti/netapi/netapi_git.bb new file mode 100644 index 0000000..7349c44 --- /dev/null +++ b/recipes-ti/netapi/netapi_git.bb @@ -0,0 +1,35 @@ +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" + +NAME = "netapi" + +include netapi.inc + +BASEDIR = "${WORKDIR}/git" +S = "${BASEDIR}/ti/runtime/netapi" + +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 +} -- 1.7.9.5