require wlan-ng-modules.inc PR = "r4" SRC_URI = "ftp://ftp.linux-wlan.org/pub/linux-wlan-ng/older/linux-wlan-ng-${PV}.tar.bz2 \ file://no-compat.patch;patch=1 \ file://only-the-modules.patch;patch=1 \ file://config.in" do_configure() { install -m 0655 ${WORKDIR}/config.in ${S}/config.in oe_runmake LINUX_SRC=${KERNEL_SOURCE} auto_config if grep CONFIG_PCMCIA=[ym] ${STAGING_KERNEL_DIR}/kernel-config; then echo "PRISM2_PCMCIA=y" >> config.mk echo "WLAN_KERN_PCMCIA=y" >> config.mk fi echo "TARGET_ROOT_ON_HOST=${D}/" >> config.mk echo "TARGET_MODDIR=${D}/lib/modules/${KERNEL_VERSION}/wlan-ng" >> config.mk echo "CC=${KERNEL_CC}" >> config.mk echo "LD=${KERNEL_LD}" >> config.mk # Listen closely... sssshhh... can you hear the wlan-ng build system suck? rm -f ${KERNEL_SOURCE}/../config.mk rm -f ${KERNEL_SOURCE}/../../config.mk ln -sf ${S}/config.mk ${KERNEL_SOURCE}/.. ln -sf ${S}/config.mk ${KERNEL_SOURCE}/../.. install -m 0655 config.mk src/prism2/config.mk install -d src/prism2/driver/include ln -sf ${S}/src/include/wlan src/prism2/driver/include/wlan ln -sf ${S}/src/prism2/include/prism2 src/prism2/driver/include/prism2 }