diff options
Diffstat (limited to 'openembedded/packages/hostap/hostap-modules.inc')
| -rw-r--r-- | openembedded/packages/hostap/hostap-modules.inc | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/openembedded/packages/hostap/hostap-modules.inc b/openembedded/packages/hostap/hostap-modules.inc new file mode 100644 index 0000000000..72f2dc2da3 --- /dev/null +++ b/openembedded/packages/hostap/hostap-modules.inc | |||
| @@ -0,0 +1,44 @@ | |||
| 1 | DESCRIPTION = "A driver for wireless LAN cards based on Intersil's Prism2/2.5/3 chipset" | ||
| 2 | SECTION = "kernel/modules" | ||
| 3 | PRIORITY = "optional" | ||
| 4 | MAINTAINER = "Michael 'Mickey' Lauer <mickey@Vanille.de>" | ||
| 5 | LICENSE = "GPL" | ||
| 6 | PROVIDES = "hostap-conf" | ||
| 7 | RPROVIDES = "virtual/kernel-hostap" | ||
| 8 | |||
| 9 | SRC_URI = "http://hostap.epitest.fi/releases/hostap-driver-${PV}.tar.gz \ | ||
| 10 | file://hostap_cs.conf" | ||
| 11 | SRC_URI_append_mtx-1 = " file://mtx_compat.diff;patch=1;pnum=0 \ | ||
| 12 | file://mtx_hostap_deferred_irq.diff;patch=1;pnum=0" | ||
| 13 | SRC_URI_append_h3900 = " file://ipaq_compat.patch;patch=1 " | ||
| 14 | |||
| 15 | S = "${WORKDIR}/hostap-driver-${PV}" | ||
| 16 | |||
| 17 | inherit module | ||
| 18 | |||
| 19 | # Hack Alert :D | ||
| 20 | ARCH_mipsel = "mips" | ||
| 21 | MAKE_TARGETS = "KERNEL_PATH=${STAGING_KERNEL_DIR} MAKE='make -e'" | ||
| 22 | |||
| 23 | NET_MODULES = "hostap hostap_pci hostap_crypt_ccmp hostap_crypt_tkip hostap_crypt_wep" | ||
| 24 | |||
| 25 | do_install() { | ||
| 26 | install -d ${D}${base_libdir}/modules/${KERNEL_VERSION}/net \ | ||
| 27 | ${D}${base_libdir}/modules/${KERNEL_VERSION}/pcmcia \ | ||
| 28 | ${D}${sysconfdir}/pcmcia | ||
| 29 | for i in ${NET_MODULES} | ||
| 30 | do | ||
| 31 | install -m 0644 driver/modules/$i${KERNEL_OBJECT_SUFFIX} ${D}${base_libdir}/modules/${KERNEL_VERSION}/net/ | ||
| 32 | done | ||
| 33 | install -m 0644 driver/modules/hostap_cs${KERNEL_OBJECT_SUFFIX} ${D}${base_libdir}/modules/${KERNEL_VERSION}/pcmcia/ | ||
| 34 | install -m 0644 driver/etc/hostap_cs.conf ${D}${sysconfdir}/pcmcia/hostap_cs.conf | ||
| 35 | cat ${WORKDIR}/hostap_cs.conf >>${D}${sysconfdir}/pcmcia/hostap_cs.conf | ||
| 36 | } | ||
| 37 | |||
| 38 | PACKAGES = "hostap-modules-cs hostap-modules-pci hostap-modules" | ||
| 39 | FILES_hostap-modules-cs = "/lib/modules/${KERNEL_VERSION}/pcmcia/ /${sysconfdir}/pcmcia/" | ||
| 40 | FILES_hostap-modules-pci = "/lib/modules/${KERNEL_VERSION}/net/hostap_pci${KERNEL_OBJECT_SUFFIX}" | ||
| 41 | FILES_hostap-modules = "/lib/modules/" | ||
| 42 | RDEPENDS_hostap-modules-cs = "hostap-modules" | ||
| 43 | RDEPENDS_hostap-modules-pci = "hostap-modules" | ||
| 44 | RPROVIDES_hostap-modules-cs = "hostap-conf" | ||
