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 DEPENDS = "virtual/kernel"
9 TARFILE = "wl_lkm_${PV}_release.tar.gz"
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
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
25 SRC_URI = "ftp://ftp.elmeg.de/artem/ClientCards/11b/linux/${TARFILE} \
27 file://includes.patch;apply=no \
28 file://kernel-pcmcia.patch;apply=no \
29 file://bugs.patch;apply=no \
30 file://fixes.patch;apply=no \
31 file://wlags_h${COMPILE_HERMES}.conf"
32 S = "${WORKDIR}/${PN}"
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
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 .
49 unset CFLAGS CPPFLAGS CXXFLAGS LDFLAGS
50 make -C ${STAGING_KERNEL_DIR} \
53 CC="${KERNEL_CC}" LD="${KERNEL_LD}" \
54 COMPILE_HERMES=${COMPILE_HERMES}
59 install -d ${D}${sysconfdir}/pcmcia
60 install -m 0644 ${WORKDIR}/wlags_h${COMPILE_HERMES}.conf ${D}${sysconfdir}/pcmcia/
62 install -d ${D}${base_libdir}/modules/${KERNEL_VERSION}/net/wireless
64 install -m 0644 wlags49_h${COMPILE_HERMES}_cs${KERNEL_OBJECT_SUFFIX} ${D}${base_libdir}/modules/${KERNEL_VERSION}/net/wireless
67 FILES = "/lib/modules/${KERNEL_VERSION}/net/wireless/*${KERNEL_OBJECT_SUFFIX} /${sysconfdir}"