zd1211b: make RDEPENDS variable package specific
[opendreambox.git] / meta-opendreambox / recipes-connectivity / zd1211 / zd1211b_2.22.0.0.bb
1 SUMMARY = "Driver for zd1211b family of wireless USB Dongles"
2 HOMEPAGE = "http://zd1211.ath.cx/"
3 SECTION = "kernel/modules"
4 LICENSE = "MPL-1.1 | GPLv2"
5 LIC_FILES_CHKSUM = "file://src/zd1211.c;endline=31;md5=76cb7cb1283c3b6e20de40280a74f87f"
6 RDEPENDS_${PN} = "wireless-tools"
7
8 inherit module
9
10 PR = "r4"
11
12 SRC_URI = " \
13         http://www.reactivated.net/software/zd1211-vendor/releases/ZD1211LnxDrv_2_22_0_0.tar.gz \
14         file://cross_compile.patch \
15         file://zdiface.patch \
16 "
17
18 SRC_URI[md5sum] = "0ac1145f1f30d883694b4a1317f142c4"
19 SRC_URI[sha256sum] = "262f44f0d1274d2baf6548e53df96c6664b076f39e3aaeeb022bbd5caccbe3e3"
20
21 S = "${WORKDIR}/ZD1211LnxDrv_2_22_0_0"
22
23 do_compile() {
24         unset CFLAGS CPPFLAGS CXXFLAGS LDFLAGS
25         oe_runmake KERN_VER=2.6 KDIR=${STAGING_KERNEL_DIR} KERNEL_SOURCE=${STAGING_KERNEL_DIR} \
26                 MODPATH=${D}${base_libdir}/modules/${KERNEL_VERSION} ZD1211REV_B=1
27 }
28
29 do_install() {
30         install -d ${D}${base_libdir}/modules/${KERNEL_VERSION}/kernel/drivers/net
31         install -m 0644 ${S}/zd1211*${KERNEL_OBJECT_SUFFIX} ${D}${base_libdir}/modules/${KERNEL_VERSION}/kernel/drivers/net
32 }