summaryrefslogtreecommitdiff
path: root/recipes-kernel/rsi-91x/rsi-91x_2.6.1.bb
blob: 09c674f93e7da598f99db9c408d2ec81689d282c (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
LICENSE = "GPLv2"
LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/GPL-2.0;md5=801f80980d171dd6425610833a22dbe6"
PR = "r3"
PKGR = "${PR}${KERNEL_MODULE_PACKAGE_SUFFIX}${EXTENDPRAUTO}"
RPROVIDES_kernel-module-rsi-91x = "rsi-91x"
inherit module

SRCREV = "v${PV}"

SRC_URI = "git://github.com/SiliconLabs/RS911X-nLink-OSD.git;protocol=https \
           file://rsi-91x-config.patch;striplevel=2 \
           file://fix-rsi-handle-card-ready.patch;striplevel=2 \
          "

S = "${WORKDIR}/git/rsi/"

EXTRA_OEMAKE = " KERNELDIR=${STAGING_KERNEL_DIR} \
                 CROSS_COMPILE=${TARGET_PREFIX} \
                 ARCH=arm \
                 WLAN_COMPILE_FLAGS='' \
                 V=1 \
                "

PARALLEL_MAKE = ""
PACKAGES += "kernel-module-rsi-usb kernel-module-rsi-sdio kernel-module-rsi-91x"
INSTDIR = "/opt/rs9113/modules"
FILES_kernel-module-rsi-usb = "${INSTDIR}/rsi_usb.ko"
FILES_kernel-module-rsi-sdio = "${INSTDIR}/rsi_sdio.ko"
FILES_kernel-module-rsi-91x = "${INSTDIR}/rsi_91x.ko"

do_install() {
   install -m 0755 -d ${D}${INSTDIR}
    # use cp instead of install so the driver doesn't get stripped
    cp ${S}/rsi_sdio.ko ${D}${INSTDIR}
    cp ${S}/rsi_91x.ko ${D}${INSTDIR}
    cp ${S}/rsi_usb.ko ${D}${INSTDIR}
}