aboutsummaryrefslogtreecommitdiffstats
path: root/meta-networking/recipes-kernel/netmap/netmap_git.bb
blob: 667e7ccb9056f927bbf9bfca8eaba6085925c68c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
require netmap.inc

DEPENDS = "netmap-modules"
PACKAGE_ARCH = "${MACHINE_ARCH}"

EXTRA_OECONF = "--kernel-dir=${STAGING_KERNEL_BUILDDIR} \
                --kernel-sources=${STAGING_KERNEL_DIR} \
                --no-drivers \
                --disable-generic \
                --prefix=${prefix} \
                --destdir=${D} \
                --cc='${CC}' \
                --ld='${LD}' \
                "
SRC_URI += "file://0001-testmmap-fix-compile-issue-with-gcc-5.x.patch"

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"

# http://errors.yoctoproject.org/Errors/Details/69733/
PNBLACKLIST[netmap] ?= "BROKEN: Tries to build kernel module and fails, either it should be disabled or there should be dependency on kernel like in netmap-modules"