[oe] [meta-networking][PATCH] netmap: add new package
akuster808
akuster808 at gmail.com
Fri Jul 31 00:26:54 UTC 2015
Martin,
On 07/29/2015 07:58 AM, Martin Jansa wrote:
> On Wed, Jul 22, 2015 at 08:08:13PM -0700, Armin Kuster wrote:
>> From: Armin Kuster <akuster at mvista.com>
>>
>> this adds netmap, the fast packet I/O framework
>> http://info.iet.unipi.it/~luigi/netmap/
>
> Fails to build on jenkins log in:
> http://errors.yoctoproject.org/Errors/Build/7660/
>
I have a lame typo in the configure parameter that my local build didn't
show. As I try this on other arch's it is barfing in other areas.
I am going to traveling for the next two weeks so you can remove this or
black list it until I can resolve the issues. I do hate cause you more work.
my apologizes,
Armin
>>
>> Signed-off-by: Armin Kuster <akuster at mvista.com>
>> ---
>> .../recipes-kernel/netmap/netmap-modules_git.bb | 33 ++++++++++++++++++++++
>> meta-networking/recipes-kernel/netmap/netmap.inc | 14 +++++++++
>> .../recipes-kernel/netmap/netmap_git.bb | 32 +++++++++++++++++++++
>> 3 files changed, 79 insertions(+)
>> create mode 100644 meta-networking/recipes-kernel/netmap/netmap-modules_git.bb
>> create mode 100644 meta-networking/recipes-kernel/netmap/netmap.inc
>> create mode 100644 meta-networking/recipes-kernel/netmap/netmap_git.bb
>>
>> diff --git a/meta-networking/recipes-kernel/netmap/netmap-modules_git.bb b/meta-networking/recipes-kernel/netmap/netmap-modules_git.bb
>> new file mode 100644
>> index 0000000..63ca50f
>> --- /dev/null
>> +++ b/meta-networking/recipes-kernel/netmap/netmap-modules_git.bb
>> @@ -0,0 +1,33 @@
>> +require netmap.inc
>> +
>> +DEPENDS = "virtual/kernel"
>> +do_configure[depends] += "virtual/kernel:do_shared_workdir"
>> +
>> +inherit module
>> +
>> +COMPATIBLE_HOST = '(x86_64|i.86|powerpc|aarch64|mips|arm).*-linux'
>> +
>> +CLEANBROKEN = "1"
>> +
>> +export INSTALL_MOD_DIR="kernel/netmap-modules"
>> +
>> +EXTRA_OECONF = "--kernel-dir=${STAGING_KERNEL_BUILDDIR} \
>> + --kernel-sources=${STAGING_KERNEL_DIR} \
>> + --install-mod-path=${D} \
>> + --driver-suffix="-netmap" \
>> + "
>> +
>> +do_configure () {
>> + cd ${S}/LINUX
>> + ./configure ${EXTRA_OECONF}
>> +}
>> +
>> +do_compile () {
>> + cd ${S}/LINUX
>> + make
>> +}
>> +
>> +do_install () {
>> + cd ${S}/LINUX
>> + oe_runmake install
>> +}
>> diff --git a/meta-networking/recipes-kernel/netmap/netmap.inc b/meta-networking/recipes-kernel/netmap/netmap.inc
>> new file mode 100644
>> index 0000000..4a101a1
>> --- /dev/null
>> +++ b/meta-networking/recipes-kernel/netmap/netmap.inc
>> @@ -0,0 +1,14 @@
>> +SUMMARY = "netmap and VALE - very fast packet I/O from userspace (FreeBSD/Linux)"
>> +DESCRIPTION= "NETMAP is a framework for very fast packet I/O from userspace. VALE is an equally fast in-kernel software switch using the netmap API. Both are implemented as a single kernel module for FreeBSD and Linux, and can deal with line rate on real or emulated 10 Gbit ports."
>> +SECTION = "networking"
>> +HOMEPAGE = "http://code.google.com/p/netmap/"
>> +LICENSE = "GPLv2+"
>> +
>> +LIC_FILES_CHKSUM = "file://README;beginline=13;endline=14;md5=f64f2b172fe6903ff7b6272c6edde588"
>> +
>> +SRCREV = "a14a35b839fe7ab6855f25f1e86e306ee7ad8123"
>> +PV = "master+git${SRCPV}"
>> +
>> +SRC_URI = "git://github.com/luigirizzo/netmap.git"
>> +
>> +S = "${WORKDIR}/git"
>> diff --git a/meta-networking/recipes-kernel/netmap/netmap_git.bb b/meta-networking/recipes-kernel/netmap/netmap_git.bb
>> new file mode 100644
>> index 0000000..da80bad
>> --- /dev/null
>> +++ b/meta-networking/recipes-kernel/netmap/netmap_git.bb
>> @@ -0,0 +1,32 @@
>> +require netmap.inc
>> +
>> +DEPENDS = "netmap-modules"
>> +
>> +EXTRA_OECONF = "--kernel-dir=${STAGING_KERNEL_BUILDDIR} \
>> + --kernel-sources=${STAGING_KERNEL_DIR} \
>> + --install-mod-path=${D} \
>> + --no-drivers \
>> + --prefix=${prefix} \
>> + --destir=${D} \
>> + --cc='${CC}' \
>> + --ld='${LD}' \
>> + "
>> +
>> +do_configure () {
>> + cd ${S}/LINUX
>> + ./configure ${EXTRA_OECONF}
>> +}
>> +
>> +do_compile () {
>> + cd ${S}/LINUX
>> + make apps
>> +}
>> +
>> +do_install () {
>> + cd ${S}/LINUX
>> + make install-apps DESTDIR=${D}
>> +}
>> +
>> +FILES_${PN} += "${bindir}"
>> +RDEPENDS_${PN} = "kernel-module-netmap"
>> +RRECOMMENDS_${PN} = "kernel-module-netmap"
>> --
>> 2.3.5
>>
>> --
>> _______________________________________________
>> Openembedded-devel mailing list
>> Openembedded-devel at lists.openembedded.org
>> http://lists.openembedded.org/mailman/listinfo/openembedded-devel
>
>
>
More information about the Openembedded-devel
mailing list