1 # FIXME, consider using kernel staging directory instead of KERNEL_SOURCE which is
2 # located in the work directory. see module.bbclass
4 DESCRIPTION = "linux-wlan-ng userland utilities"
5 HOMEPAGE = "http://www.linux-wlan.org"
6 SECTION = "kernel/userland"
8 DEPENDS = "virtual/kernel"
10 SRC_URI = "file://only-the-utils.patch;patch=1 \
11 file://wlan-ng.modutils \
17 SRC_URI_append_arm = " file://usbctl"
19 # yeah, it's kind of backwards, but otherwise the config step will fail
23 install -m 0655 ${WORKDIR}/config.in ${S}/config.in
24 oe_runmake LINUX_SRC=${KERNEL_SOURCE} auto_config
26 if grep CONFIG_PCMCIA=[ym] ${STAGING_KERNEL_DIR}/kernel-config; then
27 echo "PRISM2_PCMCIA=y" >> config.mk
28 echo "WLAN_KERN_PCMCIA=y" >> config.mk
30 echo "TARGET_ROOT_ON_HOST=${D}/" >> config.mk
31 echo "FIRMWARE_DIR=/etc/wlan" >> config.mk
32 echo "TARGET_MODDIR=${D}/lib/modules/${KERNEL_VERSION}/wlan-ng" >> config.mk
33 echo "TARGET_INST_EXEDIR=${D}/sbin" >> config.mk
34 echo "RC_DIR=${sysconfdir}/" >> config.mk
35 echo "CC=${CC}" >> config.mk
36 echo "LD=${LD}" >> config.mk
38 # Shut up, you broken buildsystem
39 install -m 0655 config.mk src/prism2/config.mk
40 install -d src/prism2/driver/include
41 ln -sf ${S}/src/include/wlan src/prism2/driver/include/wlan
42 ln -sf ${S}/src/prism2/include/prism2 src/prism2/driver/include/prism2
51 mkdir -p ${D}${sysconfdir}/modutils/
52 mkdir -p ${D}${sysconfdir}/hotplug/
53 mkdir -p ${D}${base_sbindir}/
54 install -m 0644 ${WORKDIR}/wlan-ng.modutils ${D}${sysconfdir}/modutils/wlan-ng.conf
55 install -m 0755 ${WORKDIR}/wlan.agent ${D}${sysconfdir}/hotplug/wlan.agent
56 install -d ${D}${sysconfdir}/network/if-pre-up.d
57 install -m 0755 ${WORKDIR}/pre-up ${D}${sysconfdir}/network/if-pre-up.d/wlan-ng
58 install -d ${D}${sysconfdir}/network/if-post-down.d
59 install -m 0755 ${WORKDIR}/post-down ${D}${sysconfdir}/network/if-post-down.d/wlan-ng
60 install -d ${D}${sysconfdir}/apm/resume.d
61 install -m 0755 ${WORKDIR}/resume ${D}${sysconfdir}/apm/resume.d/wlan-ng
62 install -d ${D}${mandir}/man1
63 install -m 0644 ${S}/man/*.1 ${D}${mandir}/man1/
64 rm -rf ${D}/usr/local/man
67 do_install_append_arm() {
68 install -m 0755 ${WORKDIR}/usbctl ${D}${base_sbindir}/usbctl
71 FILES_${PN}-dbg += "/sbin/.debug"
72 FILES_${PN} = "/etc /sbin"