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"
5 MAINTAINER = "Holger Schurig"
6 DEPENDS = "virtual/kernel"
10 PARALLEL_INSTALL_REPLACE_VERSIONS = "2.4.19-rmk6-pxa1-hh37 2.4.19-rmk6-pxa1-hh41.1"
12 TARFILE = "wl_lkm_${PV}_release.tar.gz"
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
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
28 SRC_URI = "http://www.agere.com/mobility/docs/${TARFILE} \
30 file://includes.patch \
31 file://kernel-pcmcia.patch \
34 file://wlags_h${COMPILE_HERMES}.conf"
35 S = "${WORKDIR}/${PN}"
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
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 .
52 unset CFLAGS CPPFLAGS CXXFLAGS LDFLAGS
53 make -C ${STAGING_KERNEL_DIR} \
56 CC="${KERNEL_CC}" LD="${KERNEL_LD}" \
57 COMPILE_HERMES=${COMPILE_HERMES}
62 install -d ${D}${sysconfdir}/pcmcia
63 install -m 0644 ${WORKDIR}/wlags_h${COMPILE_HERMES}.conf ${D}${sysconfdir}/pcmcia/
65 install -d ${D}${base_libdir}/modules/${KERNEL_VERSION}/net/wireless
67 install -m 0644 wlags49_h${COMPILE_HERMES}_cs${KERNEL_OBJECT_SUFFIX} ${D}${base_libdir}/modules/${KERNEL_VERSION}/net/wireless
70 FILES = "/lib/modules/${KERNEL_VERSION}/net/wireless/*${KERNEL_OBJECT_SUFFIX} /${sysconfdir}"