merge of 1fabadea24c36f83b75bb8e13e7fe5bd38d9a6ce
[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 MAINTAINER = "NSLU2 Linux <nslu2-linux@yahoogroups.com>"
5 LICENSE = "GPL"
6 RDEPENDS = "kernel (${KERNEL_VERSION})"
7 DEPENDS = "virtual/kernel"
8 PR="r0"
9
10 SRC_URI = "http://snapshots.madwifi.org/${PN}/${PN}-${PV}.tar.gz \
11            file://10-xscale-be-elf-copts.patch;patch=1 \
12            file://10-xscale-le-elf-copts.patch;patch=1 \
13            file://10-sh4-le-elf-copts.patch;patch=1"
14
15 S = "${WORKDIR}/${PN}-${PV}"
16
17 inherit module-base
18
19 EXTRA_OEMAKE = "LDFLAGS= KERNELPATH=${STAGING_KERNEL_DIR} KERNELRELEASE=${KERNEL_VERSION} TOOLPREFIX=${TARGET_PREFIX}"
20
21 EXTRA_OEMAKE_prepend_slugos = "TARGET=xscale-${ARCH_BYTE_SEX}-elf "
22
23 do_compile() {
24         oe_runmake all
25 }
26
27 do_stage() {
28         install -d ${STAGING_INCDIR}/${PN}/include
29         install -d ${STAGING_INCDIR}/${PN}/net80211
30         cp --dereference include/compat.h ${STAGING_INCDIR}/${PN}/include/
31         cp --dereference net80211/*.h ${STAGING_INCDIR}/${PN}/net80211/
32 }
33
34 do_install() {
35         install -d ${D}${sbindir}
36         oe_runmake DESTDIR=${D} BINDIR=${sbindir} install
37 }
38
39 pkg_postinst() {
40 if test "x$D" != "x"; then
41        exit 1
42 else
43         depmod -ae
44 fi
45 }
46
47 PACKAGES = "${PN}-modules ${PN}-tools"
48 FILES_${PN}-modules = "/lib/modules/"
49 FILES_${PN}-tools = "/usr/"