netapi: Add recipe for NETAPI module
PATCH v2 1/1 netapi: Add recipe for NETAPI module
- Provide TI user space network library and test code
- Supports k2h, k2k, k2l & k2e devices
---
Changes from previous patch
- Modifed recipes to use oe_runmake for the applications as well
---
--- recipes-ti/netapi/netapi-test_git.bb | 49 ++++++++++++++++++++++++++++++++++ recipes-ti/netapi/netapi.inc | 16 +++++++++++ recipes-ti/netapi/netapi_git.bb | 34 +++++++++++++++++++++++ 3 files changed, 99 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
recipes-ti/netapi/netapi-test_git.bb new file +49 -0
@@ -0,0 +1,49 @@ +DESCRIPTION = "Provides test and application binaries using NETAPI module" +COMPATIBLE_MACHINE = "keystone" +DEPENDS = "netapi ipsecmgr" + +include netapi.inc + +EXTRA_OEMAKE = "PDK_INSTALL_PATH=${STAGING_INCDIR}" + +do_compile () { +# Build the netapi binaries + for device in ${DEVICELIST} + do + for choice in ${CHOICELIST} + do + oe_runmake -f makefile_armv7 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 + oe_runmake clean NETAPI_SRC_DIR=${S} DEVICE="$device" + oe_runmake app NETAPI_SRC_DIR=${S} DEVICE="$device" + + cd ${S}/applications/ipsec_offload/config-app/build + oe_runmake clean DEVICE="$device" + oe_runmake app DEVICE="$device" + cd ${S} + done +} + +do_install () { + for device in ${DEVICELIST} + do + oe_runmake -f makefile_armv7 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 + oe_runmake install \ + INSTALL_BIN_BASE_DIR=${D}${bindir} SYSCONFDIR=${D}${sysconfdir} \ + DEVICE="$device" + + cd ${S}/applications/ipsec_offload/config-app/build + oe_runmake install \ + INSTALL_BIN_BASE_DIR=${D}${bindir} SYSCONFDIR=${D}${sysconfdir} \ + DEVICE="$device" + cd ${S} + done +}
recipes-ti/netapi/netapi.inc new file +16 -0
@@ -0,0 +1,16 @@ +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" + +BASEDIR = "${WORKDIR}/git" +S = "${BASEDIR}/ti/runtime/netapi"
recipes-ti/netapi/netapi_git.bb new file +34 -0
@@ -0,0 +1,34 @@ +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 + +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 +}
Signature · 1 line
1.7.9.5
Quoted 101 lines · Sam Nelson
- Provide TI user space network library and test code
- Supports k2h, k2k, k2l & k2e devicesSigned-off-by Sam Nelson <[email protected]>---
Changes from previous patch
- Modifed recipes to useoe_runmakefor the applications as well
------ recipes-ti/netapi/netapi-test_git.bb | 49 ++++++++++++++++++++++++++++++++++ recipes-ti/netapi/netapi.inc | 16 +++++++++++ recipes-ti/netapi/netapi_git.bb | 34 +++++++++++++++++++++++ 3 files changed, 99 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.bbrecipes-ti/netapi/netapi-test_git.bb new file +49
-0@@ -0,0 +1,49 @@ +DESCRIPTION = "Provides test and application binaries using NETAPI module" +COMPATIBLE_MACHINE = "keystone" +DEPENDS = "netapi ipsecmgr" + +include netapi.inc + +EXTRA_OEMAKE = "PDK_INSTALL_PATH=${STAGING_INCDIR}" + +do_compile () { +# Build the netapi binaries + for device in ${DEVICELIST} + do + for choice in ${CHOICELIST} + do + oe_runmake -f makefile_armv7 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 + oe_runmake clean NETAPI_SRC_DIR=${S} DEVICE="$device" + oe_runmake app NETAPI_SRC_DIR=${S} DEVICE="$device" + + cd ${S}/applications/ipsec_offload/config-app/build + oe_runmake clean DEVICE="$device" + oe_runmake app DEVICE="$device" + cd ${S} + done +} + +do_install () { + for device in ${DEVICELIST} + do + oe_runmake -f makefile_armv7 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 + oe_runmake install \ + INSTALL_BIN_BASE_DIR=${D}${bindir} SYSCONFDIR=${D}${sysconfdir} \ + DEVICE="$device" + + cd ${S}/applications/ipsec_offload/config-app/build + oe_runmake install \ + INSTALL_BIN_BASE_DIR=${D}${bindir} SYSCONFDIR=${D}${sysconfdir} \ + DEVICE="$device" + cd ${S} + done +}recipes-ti/netapi/netapi.inc new file +16
-0@@ -0,0 +1,16 @@ +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" + +BASEDIR = "${WORKDIR}/git" +S = "${BASEDIR}/ti/runtime/netapi"recipes-ti/netapi/netapi_git.bb new file +0
-0
recipes-ti/netapi/netapi_git.bb line 7
Quoted 7 lines
recipes-ti/netapi/netapi_git.bb new file +7
-0@@ -0,0 +1,34 @@ +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"
Sorry, didn't notice it at first - what is this NAME variable for?
Quoted 34 lines
recipes-ti/netapi/netapi_git.bb new file +26
-0+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 +}Signature · 7 lines
1.7.9.5 -- _______________________________________________ meta-ti mailing list [email protected] https://lists.yoctoproject.org/listinfo/meta-ti
Quoted 129 lines
-----Original Message-----
From: Dmytriyenko, Denys
Sent: Thursday, February 26, 2015 11:57 AM
To: Nelson, Sam
Cc: [email protected]
Subject: Re: [meta-ti] [PATCH v2] netapi: Add recipe for NETAPI moduleQuoted 11 lines · Sam Nelson
- Provide TI user space network library and test code
- Supports k2h, k2k, k2l & k2e devicesSigned-off-by Sam Nelson <[email protected]>---
Changes from previous patch
- Modifed recipes to useoe_runmakefor the applications as well
------ recipes-ti/netapi/netapi-test_git.bb | 49++++++++++++++++++++++++++++++++++
recipes-ti/netapi/netapi-
Quoted 8 lines
recipes-ti/netapi/netapi.inc | 16 +++++++++++ recipes-ti/netapi/netapi_git.bb | 34 +++++++++++++++++++++++ 3 files changed, 99 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.bbrecipes-ti/netapi/netapi- renamed from recipes-ti/netapi/netapi-test_git.bb +0
-0test_git.bb
recipes-ti/netapi/netapi-test_git.bb line 1
Quoted 6 lines
new file mode 100644
index 0000000..9d49c29recipes-ti/netapi/netapi-test_git.bb new file +1
-0@@ -0,0 +1,49 @@ +DESCRIPTION = "Provides test and application binaries using NETAPImodule"
Quoted 4 lines
recipes-ti/netapi/netapi-test_git.bb new file +4
-0+COMPATIBLE_MACHINE = "keystone" +DEPENDS = "netapi ipsecmgr" + +include netapi.increcipes-ti/netapi/netapi-test_git.bb
Quoted 10 lines
recipes-ti/netapi/netapi-test_git.bb new file +10
-0+ +EXTRA_OEMAKE = "PDK_INSTALL_PATH=${STAGING_INCDIR}" + +do_compile () { +# Build the netapi binaries + for device in ${DEVICELIST} + do + for choice in ${CHOICELIST} + do + oe_runmake -f makefile_armv7 testsNETAPI_SRC_DIR=${S} NETAPI_INC_DIR=${BASEDIR} \
recipes-ti/netapi/netapi-test_git.bb line 16
Quoted 1 line
recipes-ti/netapi/netapi-test_git.bb new file +1
-0+ USEDYNAMIC_LIB="$choice"DEVICE="$device"
Quoted 8 lines
recipes-ti/netapi/netapi-test_git.bb new file +8
-0+ done + +# Now build the netapi appplications + cd ${S}/applications/ipsec_offload/ipsecmgr/build + oe_runmake clean NETAPI_SRC_DIR=${S} DEVICE="$device" + oe_runmake app NETAPI_SRC_DIR=${S} DEVICE="$device" + + cd ${S}/applications/ipsec_offload/config-app/buildrecipes-ti/netapi/netapi-test_git.bb
Quoted 10 lines
recipes-ti/netapi/netapi-test_git.bb new file +10
-0+ oe_runmake clean DEVICE="$device" + oe_runmake app DEVICE="$device" + cd ${S} + done +} + +do_install () { + for device in ${DEVICELIST} + do + oe_runmake -f makefile_armv7 installbinINSTALL_INC_BASE_DIR=${D}/${includedir} \
recipes-ti/netapi/netapi-test_git.bb line 35
Quoted 1 line
recipes-ti/netapi/netapi-test_git.bb new file +1
-0+ INSTALL_LIB_BASE_DIR=${D}${libdir}INSTALL_BIN_BASE_DIR=${D}${bindir} \
recipes-ti/netapi/netapi-test_git.bb
Quoted 5 lines
recipes-ti/netapi/netapi-test_git.bb new file +5
-0+ SYSCONFDIR=${D}${sysconfdir} DEVICE="$device" + + cd ${S}/applications/ipsec_offload/ipsecmgr/build + oe_runmake install \ + INSTALL_BIN_BASE_DIR=${D}${bindir}SYSCONFDIR=${D}${sysconfdir} \
recipes-ti/netapi/netapi-test_git.bb
Quoted 5 lines
recipes-ti/netapi/netapi-test_git.bb new file +5
-0+ DEVICE="$device" + + cd ${S}/applications/ipsec_offload/config-app/build + oe_runmake install \ + INSTALL_BIN_BASE_DIR=${D}${bindir}SYSCONFDIR=${D}${sysconfdir} \
recipes-ti/netapi/netapi.inc line 2
Quoted 12 lines
recipes-ti/netapi/netapi-test_git.bb new file +4
-0+ DEVICE="$device" + cd ${S} + done +}recipes-ti/netapi/netapi.inc new file +2
-0@@ -0,0 +1,16 @@ +LICENSE = "BSD-3-Clause" +LIC_FILES_CHKSUM ="file://${WORKDIR}/git/COPYING.txt;md5=f2b4f162358b1ffaf3f2307287ca207 4"
recipes-ti/netapi/netapi.inc
Quoted 3 lines
recipes-ti/netapi/netapi.inc new file +3
-0+ +BRANCH = "master" +SRC_URI = "git://git.ti.com/keystone-rtos/netapi.git;protocol=git;branch=${BRANCH}"
Quoted 17 lines
recipes-ti/netapi/netapi.inc new file +11
-0+ +# 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" + +BASEDIR = "${WORKDIR}/git" +S = "${BASEDIR}/ti/runtime/netapi"recipes-ti/netapi/netapi_git.bb new file +0
-0recipes-ti/netapi/netapi_git.bb line 5
Quoted 5 lines
recipes-ti/netapi/netapi_git.bb new file +5
-0@@ -0,0 +1,34 @@ +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"
Quoted 4 lines
recipes-ti/netapi/netapi_git.bb line 7
Quoted 2 lines
recipes-ti/netapi/netapi_git.bb new file +2
-0+ +NAME = "netapi"Sorry, didn't notice it at first - what is this NAME variable for?
[Sam] Looks like not needed. I will send update patch.
Quoted 42 lines
recipes-ti/netapi/netapi_git.bb line 10
Quoted 5 lines
recipes-ti/netapi/netapi_git.bb new file +3
-0+include netapi.inc + +EXTRA_OEMAKE = "-f makefile_armv7PDK_INSTALL_PATH=${STAGING_INCDIR}"
recipes-ti/netapi/netapi_git.bb
Quoted 8 lines
recipes-ti/netapi/netapi_git.bb new file +8
-0+ +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} \
recipes-ti/netapi/netapi_git.bb line 19
Quoted 1 line
recipes-ti/netapi/netapi_git.bb new file +1
-0+ USEDYNAMIC_LIB="$choice"DEVICE="$device"
recipes-ti/netapi/netapi_git.bb line 20
Quoted 1 line
recipes-ti/netapi/netapi_git.bb new file +1
-0+ oe_runmake lib NETAPI_SRC_DIR=${S}NETAPI_INC_DIR=${BASEDIR} \
recipes-ti/netapi/netapi_git.bb line 21
Quoted 1 line
recipes-ti/netapi/netapi_git.bb new file +1
-0+ USEDYNAMIC_LIB="$choice"DEVICE="$device"
recipes-ti/netapi/netapi_git.bb
Quoted 9 lines
recipes-ti/netapi/netapi_git.bb new file +9
-0+ 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} \
Quoted 11 lines
recipes-ti/netapi/netapi_git.bb new file +3
-1+ SYSCONFDIR=${D}${sysconfdir} DEVICE="$device" + done +} --1.7.9.5
--
_______________________________________________
meta-ti mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/meta-ti