summaryrefslogtreecommitdiff
path: root/recipes-kernel/rs9113/rs9113_1.5.0.bb
blob: 1e770e9d5c8432c765edca68f1122614cd56abc7 (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
DESCRIPTION = "USB Driver for Redpine RS9113"
LICENSE = "Proprietary"
LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/Proprietary;md5=0557f9d92cf58f2ccdd50f62f8ac0b28"
PACKAGE_ARCH = "mtcdt"
PROVIDES = "rs9113"
FILES_${PN} = "/opt/rs9113 ${sbindir} ${sysconfdir}"

# NOTE: annex-client binary is built with Jenkin's job using annex-client-from-src.bb
# To update this, manually copy ipk from Jenkin's job to .net/downloads/
PR = "r0"
SRC_URI = "http://akbar:8080/job/rs9113/lastSuccessfulBuild/artifact/mlinux/build/tmp/deploy/ipk/mtcdt/rs9113-from-src_${PV}-${PR}.0_${PACKAGE_ARCH}.ipk \
    file://rs9113/rs9113.init \
    file://rs9113/rs9113.default \
    file://rs9113/wpa_supplicant \
"

SRC_URI[md5sum] = "3e2a36fc3fb32164820863fcde02c787"
SRC_URI[sha256sum] = "f676c3f0814563ff1bb0f982dcd1fb55bd50b571594992000bbfad7bdec08a3a"

M = "${WORKDIR}/rs9113"

do_install() {
   bbnote "pwd,ls: $(pwd) $(ls) WORKDIR is ${WORKDIR}"
   (
    cd ${WORKDIR}
    find etc -print0 | cpio -0 -pdum ${D}
    find usr -print0 | cpio -0 -pdum ${D}
    find opt -print0 | cpio -0 -pdum ${D}
   )
   install -d ${D}/opt/rs9113/init.d
   install -d ${D}${sysconfdir}/init.d/
   install -d ${D}${sysconfdir}/default/
   install -m 0755 ${M}/wpa_supplicant ${D}/opt/rs9113/init.d
   install -m 0755 ${M}/rs9113.init ${D}${sysconfdir}/init.d/rs9113
   install -m 0644 ${M}/rs9113.default ${D}${sysconfdir}/default/rs9113
}