surpport seeking the recorded video
[vuplus_openembedded] / recipes / wlags-modules / wlags-modules_718.inc
1 DESCRIPTION = "A driver from Agera (a card manufacturer) for wireless LAN cards based on Hermes cards."
2 HOMEPAGE = "http://www.agere.com/mobility/wireless_lan_drivers.html"
3 SECTION = "kernel/modules"
4 PRIORITY = "optional"
5 DEPENDS = "virtual/kernel"
6 LICENSE = "BSD"
7 PR = "r1"
8
9 TARFILE = "wl_lkm_${PV}_release.tar.gz"
10
11
12 #
13 # The original wlags tar file is a bit messy:
14 # * it doesn't contain it's own subdirectory
15 # * the files are formatted for Windows/DOS (with CR/LF)
16 # * they assume that the pcmcia-cs source code is there
17 # * they don't use the kernel makefile approach
18 #
19 # Because of this, I create the IPK in a little unusual way:
20 # * I "flatten" the structure to be able to use the kernel makefile concept
21 # * the patches I have are for the flattened structure
22 # * then I do the usual compile/install/package dance
23 #
24
25 SRC_URI = "ftp://ftp.elmeg.de/artem/ClientCards/11b/linux/${TARFILE} \
26         file://Makefile \
27         file://includes.patch \
28         file://kernel-pcmcia.patch \
29         file://bugs.patch \
30         file://fixes.patch \
31         file://wlags_h${COMPILE_HERMES}.conf"
32 S = "${WORKDIR}/${PN}"
33
34 do_configure() {
35         cp ../{hcf,firmware,include/hcf,include/wireless}/*.h .
36         cp ../{hcf,firmware,wireless}/*.c .
37         cp ../etc/wlags49.conf .
38         perl -pi -e 'r:\r::g' *.h *.c
39
40         patch -p1 <${WORKDIR}/includes.patch
41         patch -p1 <${WORKDIR}/kernel-pcmcia.patch
42         patch -p1 <${WORKDIR}/bugs.patch
43         patch -p1 <${WORKDIR}/fixes.patch
44         cp ${WORKDIR}/Makefile .
45 }
46
47
48 do_compile() {
49         unset CFLAGS CPPFLAGS CXXFLAGS LDFLAGS
50         make -C ${STAGING_KERNEL_DIR} \
51                 modules \
52                 SUBDIRS="${S}" \
53                 CC="${KERNEL_CC}" LD="${KERNEL_LD}" \
54                 COMPILE_HERMES=${COMPILE_HERMES}
55 }
56
57
58 do_install() {
59         install -d ${D}${sysconfdir}/pcmcia
60         install -m 0644 ${WORKDIR}/wlags_h${COMPILE_HERMES}.conf ${D}${sysconfdir}/pcmcia/
61
62         install -d ${D}${base_libdir}/modules/${KERNEL_VERSION}/net/wireless
63         ls
64         install -m 0644 wlags49_h${COMPILE_HERMES}_cs${KERNEL_OBJECT_SUFFIX} ${D}${base_libdir}/modules/${KERNEL_VERSION}/net/wireless
65 }
66
67 FILES = "/lib/modules/${KERNEL_VERSION}/net/wireless/*${KERNEL_OBJECT_SUFFIX} /${sysconfdir}"