merge of '136c87650ffb3c5462d9cde38962c88081eb61d7'
[vuplus_openembedded] / packages / madwifi / madwifi-ng_r.inc
1 DESCRIPTION = "Linux driver for 802.11a/b/g universal NIC cards using Atheros chip sets"
2 SECTION = "base"
3 PRIORITY = "optional"
4 LICENSE = "GPL"
5 RDEPENDS = "kernel (${KERNEL_VERSION})"
6 DEPENDS = "virtual/kernel"
7 PR="r3"
8
9 WACKELF_SRC_URI = ""
10 WACKELF_SRC_URI_ixp4xx = " file://20-xscale-VFP-wackelf.patch;patch=1"
11
12 SRC_URI = "http://snapshots.madwifi.org/${PN}/${PN}-${PV}.tar.gz \
13            file://10-xscale-be-elf-copts.patch;patch=1 \
14            file://10-xscale-le-elf-copts.patch;patch=1 \
15            file://10-sh4-le-elf-copts.patch;patch=1 \
16            ${WACKELF_SRC_URI}"
17
18 S = "${WORKDIR}/${PN}-${PV}"
19
20 inherit module-base
21
22 ARCH_efika="powerpc"
23 ARCH_dht-walnut="ppc"
24
25 EXTRA_OEMAKE = "LDFLAGS= KERNELPATH=${STAGING_KERNEL_DIR} KERNELRELEASE=${KERNEL_VERSION} TOOLPREFIX=${TARGET_PREFIX}"
26
27 EXTRA_OEMAKE_prepend_ixp4xxle = "TARGET=xscale-le-elf "
28 EXTRA_OEMAKE_prepend_ixp4xxbe = "TARGET=xscale-be-elf "
29
30
31 do_compile() {
32         oe_runmake all
33 }
34
35 do_stage() {
36         install -d ${STAGING_INCDIR}/${PN}/include
37         install -d ${STAGING_INCDIR}/${PN}/net80211
38         cp --dereference include/compat.h ${STAGING_INCDIR}/${PN}/include/
39         cp --dereference net80211/*.h ${STAGING_INCDIR}/${PN}/net80211/
40 }
41
42 do_install() {
43         install -d ${D}${sbindir}
44         oe_runmake DESTDIR=${D} BINDIR=${sbindir} install
45 }
46
47 pkg_postinst() {
48 if test "x$D" != "x"; then
49        exit 1
50 else
51         depmod -ae
52 fi
53 }
54
55 PACKAGES = "${PN}-modules ${PN}-tools"
56 FILES_${PN}-modules = "/lib/modules/"
57 FILES_${PN}-tools = "/usr/"