BUMP: Updated scripts to include changed stuff.
[openpandora.oe.git] / recipes / pandora-system / wl1251-modules.bb
1 DESCRIPTION = "Kernel drivers for the TI WL1251 WiFi chip found on the Pandora - Connected via SDIO"
2 LICENSE = "GPLv2"
3
4 SRC_URI += " \
5         http://www.orbit-lab.org/kernel/compat-wireless-2.6/2010/03/compat-wireless-2010-03-10.tar.bz2;name=compat-wireless \
6         file://0001-wl1251-make-local-symbols-static.patch;patch=1 \
7         file://0002-wl1251-fix-ELP_CTRL-register-accesses-when-using-SDI.patch;patch=1 \
8         file://0003-wl1251-reduce-eeprom-read-wait-time.patch;patch=1 \
9         file://0004-wl1251-fix-potential-crash.patch;patch=1 \
10         file://0005-pandora-hacks.patch;patch=1 \
11         file://no-scan-while-connected.patch;patch=1 \
12         file://print-chip-id.patch;patch=1 \
13         file://rc.wl1251 \
14         file://50-compat_firmware.rules \
15         file://compat_firmware.sh \
16 "
17
18 RDEPENDS = "udev"
19
20 SRC_URI[compat-wireless.md5sum] = "bd1875aebcc2a72f66529ba625751a8c"
21 SRC_URI[compat-wireless.sha256sum] = "dd8d8bc79ccb24a1d043325979e337678991b79f2011df160c2d924f181a82c9"
22
23 inherit update-rc.d
24
25 INITSCRIPT_NAME = "wl1251-init"
26 INITSCRIPT_PARAMS = "start 30 5 2 . stop 40 0 1 6 ."
27
28 S = "${WORKDIR}/compat-wireless-2010-03-10"
29
30 inherit module
31
32 PARALLEL_MAKE = ""
33
34 EXTRA_OEMAKE = " \
35           'KLIB=${STAGING_KERNEL_DIR}' \
36           'KLIB_BUILD=${STAGING_KERNEL_DIR}' \
37           "
38           
39 do_compile_prepend() {
40           cd ${S}
41           chmod +x ${S}/scripts/*
42 }
43
44 do_install() {
45           install -d ${D}/lib/modules/${KERNEL_VERSION}/updates/compat
46           install -m 0644 ${S}/compat/*.ko ${D}/lib/modules/${KERNEL_VERSION}/updates/compat
47           install -d ${D}/lib/modules/${KERNEL_VERSION}/updates/kernel/net/mac80211
48           install -m 0644 ${S}/net/mac80211/*.ko ${D}/lib/modules/${KERNEL_VERSION}/updates/kernel/net/mac80211
49           install -d ${D}/lib/modules/${KERNEL_VERSION}/updates/kernel/net/wireless
50           install -m 0644 ${S}/net/wireless/*.ko ${D}/lib/modules/${KERNEL_VERSION}/updates/kernel/net/wireless
51           install -d ${D}/lib/modules/${KERNEL_VERSION}/updates/kernel/net/rfkill
52           install -m 0644 ${S}/net/rfkill/*.ko ${D}/lib/modules/${KERNEL_VERSION}/updates/kernel/net/rfkill
53           install -d ${D}/lib/modules/${KERNEL_VERSION}/updates/kernel/drivers/net/wireless/wl12xx      
54           install -m 0644 ${S}/drivers/net/wireless/wl12xx/wl1251.ko ${D}/lib/modules/${KERNEL_VERSION}/updates/kernel/drivers/net/wireless/wl12xx
55           install -m 0644 ${S}/drivers/net/wireless/wl12xx/wl1251_sdio.ko ${D}/lib/modules/${KERNEL_VERSION}/updates/kernel/drivers/net/wireless/wl12xx
56           
57           install -d ${D}${sysconfdir}/init.d/
58           install -m 0755 ${WORKDIR}/rc.wl1251 ${D}${sysconfdir}/init.d/wl1251-init
59
60           install -d ${D}${sysconfdir}/udev/rules.d/
61           install -m 0644 ${WORKDIR}/50-compat_firmware.rules ${D}${sysconfdir}/udev/rules.d/
62           install -m 0755 ${WORKDIR}/compat_firmware.sh ${D}${sysconfdir}/udev/rules.d/          
63 }
64
65 FILES_${PN} += "/lib/modules/${KERNEL_VERSION}/updates/compat/*.ko.*"
66 FILES_${PN} += "/lib/modules/${KERNEL_VERSION}/updates/kernel/net/mac80211/*.ko.*"
67 FILES_${PN} += "/lib/modules/${KERNEL_VERSION}/updates/kernel/net/wireless/*.ko.*"
68 FILES_${PN} += "/lib/modules/${KERNEL_VERSION}/updates/kernel/net/rfkill/*.ko.*"
69 FILES_${PN} += "/lib/modules/${KERNEL_VERSION}/updates/kernel/drivers/net/wireless/wl12xx/*.ko.*"