merge of '1f1ee65b78eaa5dbe2156b3cbce011afd24101f0'
[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="r0"
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            file://20-xscale-VFP-wackelf.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_ixp4xx = "TARGET=xscale-${SITEINFO_ENDIANESS}-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/"