]> pilppa.org Git - familiar-h63xx-build.git/blob - org.handhelds.familiar/packages/wlags-modules/wlags-modules_718.inc
11e0b0d083cb9ac01602efa771059e1b701c4507
[familiar-h63xx-build.git] / org.handhelds.familiar / packages / 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 MAINTAINER = "Holger Schurig"
6 DEPENDS = "virtual/kernel"
7 LICENSE = "BSD"
8 PR = "r1"
9
10 PARALLEL_INSTALL_REPLACE_VERSIONS = "2.4.19-rmk6-pxa1-hh37 2.4.19-rmk6-pxa1-hh41.1"
11
12 TARFILE = "wl_lkm_${PV}_release.tar.gz"
13
14
15 #
16 # The original wlags tar file is a bit messy:
17 # * it doesn't contain it's own subdirectory
18 # * the files are formatted for Windows/DOS (with CR/LF)
19 # * they assume that the pcmcia-cs source code is there
20 # * they don't use the kernel makefile approach
21 #
22 # Because of this, I create the IPK in a little unusual way:
23 # * I "flatten" the structure to be able to use the kernel makefile concept
24 # * the patches I have are for the flattened structure
25 # * then I do the usual compile/install/package dance
26 #
27
28 SRC_URI = "http://www.agere.com/mobility/docs/${TARFILE} \
29         file://Makefile \
30         file://includes.patch \
31         file://kernel-pcmcia.patch \
32         file://bugs.patch \
33         file://fixes.patch \
34         file://wlags_h${COMPILE_HERMES}.conf"
35 S = "${WORKDIR}/${PN}"
36
37 do_configure() {
38         cp ../{hcf,firmware,include/hcf,include/wireless}/*.h .
39         cp ../{hcf,firmware,wireless}/*.c .
40         cp ../etc/wlags49.conf .
41         perl -pi -e 'r:\r::g' *.h *.c
42
43         patch -p1 <${WORKDIR}/includes.patch
44         patch -p1 <${WORKDIR}/kernel-pcmcia.patch
45         patch -p1 <${WORKDIR}/bugs.patch
46         patch -p1 <${WORKDIR}/fixes.patch
47         cp ${WORKDIR}/Makefile .
48 }
49
50
51 do_compile() {
52         unset CFLAGS CPPFLAGS CXXFLAGS LDFLAGS
53         make -C ${STAGING_KERNEL_DIR} \
54                 modules \
55                 SUBDIRS="${S}" \
56                 CC="${KERNEL_CC}" LD="${KERNEL_LD}" \
57                 COMPILE_HERMES=${COMPILE_HERMES}
58 }
59
60
61 do_install() {
62         install -d ${D}${sysconfdir}/pcmcia
63         install -m 0644 ${WORKDIR}/wlags_h${COMPILE_HERMES}.conf ${D}${sysconfdir}/pcmcia/
64
65         install -d ${D}${base_libdir}/modules/${KERNEL_VERSION}/net/wireless
66         ls
67         install -m 0644 wlags49_h${COMPILE_HERMES}_cs${KERNEL_OBJECT_SUFFIX} ${D}${base_libdir}/modules/${KERNEL_VERSION}/net/wireless
68 }
69
70 FILES = "/lib/modules/${KERNEL_VERSION}/net/wireless/*${KERNEL_OBJECT_SUFFIX} /${sysconfdir}"