merge of '514f567825ae8e6637db7739ff19922824ab5430'
[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="r1"
8
9 SRC_URI = "http://snapshots.madwifi.org/${PN}/${PN}-${PV}.tar.gz \
10            file://10-xscale-be-elf-copts.patch;patch=1 \
11            file://10-xscale-le-elf-copts.patch;patch=1 \
12            file://10-sh4-le-elf-copts.patch;patch=1"
13
14 SRC_URI_slugos = "http://snapshots.madwifi.org/${PN}/${PN}-${PV}.tar.gz \
15                   file://slugos-xscale-be-elf-copts.patch;patch=1 \
16                   file://slugos-xscale-le-elf-copts.patch;patch=1 \
17                   file://slugos-VFP-wackelf.patch;patch=1"
18
19 S = "${WORKDIR}/${PN}-${PV}"
20
21 inherit module-base
22
23 ARCH_efika="powerpc"
24 ARCH_dht-walnut="ppc"
25
26 EXTRA_OEMAKE = "LDFLAGS= KERNELPATH=${STAGING_KERNEL_DIR} KERNELRELEASE=${KERNEL_VERSION} TOOLPREFIX=${TARGET_PREFIX}"
27
28 EXTRA_OEMAKE_prepend_ixp4xxle = "TARGET=xscale-le-elf "
29 EXTRA_OEMAKE_prepend_ixp4xxbe = "TARGET=xscale-be-elf "
30
31
32 do_compile() {
33         oe_runmake all
34 }
35
36 do_stage() {
37         install -d ${STAGING_INCDIR}/${PN}/include
38         install -d ${STAGING_INCDIR}/${PN}/net80211
39         cp --dereference include/compat.h ${STAGING_INCDIR}/${PN}/include/
40         cp --dereference net80211/*.h ${STAGING_INCDIR}/${PN}/net80211/
41 }
42
43 do_install() {
44         install -d ${D}${sbindir}
45         oe_runmake DESTDIR=${D} BINDIR=${sbindir} install
46 }
47
48 pkg_postinst() {
49 if test "x$D" != "x"; then
50        exit 1
51 else
52         depmod -ae
53 fi
54 }
55
56 PACKAGES = "${PN}-modules ${PN}-tools"
57 FILES_${PN}-modules = "/lib/modules/"
58 FILES_${PN}-tools = "/usr/"