summaryrefslogtreecommitdiff
path: root/recipes-bsp/multitech/mtac-eth_1.1.0.bb
blob: 0ba74f83f4fe1cc54c8221eb7ffc1504ecfb805e (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
38
39
40
41
42
43
44
45
46
DESCRIPTION = "MTAC ETH (Ethernet) Card"
HOMEPAGE = "http://www.multitech.net/developer/products/multiconnect-conduit-platform/accessory-cards/mtac-eth/"
SECTION = "base"
PRIORITY = "optional"
LICENSE = "GPLv2"
LIC_FILES_CHKSUM = "file://COPYING;md5=94d55d512a9ba36caa9b7df079bae19f"
DEPENDS = "virtual/kernel mtac mts-io"
RDEPENDS_${PN} = "kernel-module-mtac"
INC_PR = "r0"

SRCREV = "${PV}"

PR = "${INC_PR}.1-${MLINUX_KERNEL_VERSION}${MLINUX_KERNEL_EXTRA_VERSION}"

SRC_URI = " \
    git://git.multitech.net/mtac-eth.git;protocol=git \
"
S = "${WORKDIR}/git"

inherit module

EXTRA_OEMAKE = " -C ${STAGING_KERNEL_DIR} \
                EXTRA_CFLAGS='-I${STAGING_INCDIR}/mts-kernel-headers' \
                KBUILD_VERBOSE=1 \
                M=${S} \
                modules \
                "

do_compile () {
    bbnote make   "$@"
    make   "$@"
    unset CFLAGS CPPFLAGS CXXFLAGS LDFLAGS
    oe_runmake
}

PACKAGES = "kernel-module-${PN}"

FILES_kernel-module-${PN} = "${base_libdir}/modules/${KERNEL_VERSION}/extra/mtac_eth.ko"

PARALLEL_MAKE = ""

fakeroot do_install () {
    install -m 0755 -d ${D}${base_libdir}/modules/${KERNEL_VERSION}/extra
    # use cp instead of install so the driver doesn't get stripped
    cp ${S}/mtac_eth.ko ${D}${base_libdir}/modules/${KERNEL_VERSION}/extra
}