2 DESCRIPTION = "linux-wlan-ng (prism2.x, prism3, pcmcia, pci, usb) driver for 11Mbps wireless lan cards"
3 HOMEPAGE = "http://www.linux-wlan.org"
4 DEPENDS = "virtual/kernel"
5 RRECOMMENDS = "wlan-ng-utils"
6 MAINTAINER = "Bruno Randolf <bruno.randolf@4g-systems.biz>"
10 SRC_URI = "ftp://ftp.linux-wlan.org/pub/linux-wlan-ng/linux-wlan-ng-${PV}.tar.bz2 \
11 file://no-compat.patch;patch=1 \
12 file://Ambit_usb.patch;patch=1 \
13 file://scripts-makefile-hostcc.diff;patch=1;pnum=0 \
14 file://pass-kernel-cross.patch;patch=1;pnum=0 \
15 file://OZ-Configure.patch;patch=1 \
16 file://wlan-ng.modutils \
23 S = "${WORKDIR}/linux-wlan-ng-${PV}"
30 cp ${WORKDIR}/config.in ${S}
31 if grep CONFIG_PCMCIA=[ym] ${STAGING_DIR}/${HOST_SYS}/kernel/kernel-config; then
32 export PRISM2_PCMCIA=y
33 export WLAN_KERN_PCMCIA=y
38 export TARGET_ROOT_ON_HOST=${D}
39 export RC_DIR=${sysconfdir}
40 oe_runmake LINUX_SRC=${KERNEL_SOURCE} auto_config
43 # override module_do_install in module.oeclass - dont want to set CC and
44 # LD unless actually compiling the kernel modules - there are other user
45 # level programs to be compiled. Note we need to use same compiler
46 # that was used to build the kernel
48 unset CFLAGS CPPFLAGS CXXFLAGS LDFLAGS
49 oe_runmake KERNEL_PATH=${STAGING_KERNEL_DIR} \
50 KERNEL_SRC=${STAGING_KERNEL_DIR} \
51 KERNEL_VERSION=${KERNEL_VERSION} \
52 KERNEL_CC="${KERNEL_CC}" KERNEL_LD="${KERNEL_LD}" \
57 oe_runmake install DESTDIR=${D} TARGET_MODDIR=
58 mkdir -p ${D}/etc/modutils/
59 mkdir -p ${D}/etc/hotplug/
61 install -m 0644 ${WORKDIR}/wlan-ng.modutils ${D}/etc/modutils/wlan-ng.conf
62 install -m 0755 ${WORKDIR}/wlan.agent ${D}/etc/hotplug/wlan.agent
63 install -d ${D}/${sysconfdir}/network/if-pre-up.d
64 install -m 0755 ${WORKDIR}/pre-up ${D}/${sysconfdir}/network/if-pre-up.d/wlan-ng
65 install -d ${D}/${sysconfdir}/network/if-post-down.d
66 install -m 0755 ${WORKDIR}/post-down ${D}/${sysconfdir}/network/if-post-down.d/wlan-ng
67 install -d ${D}/${sysconfdir}/apm/resume.d
68 install -m 0755 ${WORKDIR}/resume ${D}/${sysconfdir}/apm/resume.d/wlan-ng
69 install -m 0755 ${WORKDIR}/usbctl ${D}/sbin/usbctl
70 install -d ${D}/${mandir}
71 mv ${D}/usr/local/man/* ${D}/${mandir}
72 rm -r ${D}/usr/local/man
73 rm -rf ${D}/etc/init.d
76 PACKAGES_prepend = "wlan-ng-utils "
77 FILES_wlan-ng-utils = "${sysconfdir} /sbin"