merge of 'bdc75a9b53779952dcf9e4332c379f34e958ee71'
[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
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 EXTRA_OEMAKE = "LDFLAGS= KERNELPATH=${STAGING_KERNEL_DIR} KERNELRELEASE=${KERNEL_VERSION} TOOLPREFIX=${TARGET_PREFIX}"
24
25 EXTRA_OEMAKE_prepend_ixp4xx = "TARGET=xscale-${SITEINFO_ENDIANESS}-elf "
26
27 do_compile() {
28         oe_runmake all
29 }
30
31 do_stage() {
32         install -d ${STAGING_INCDIR}/${PN}/include
33         install -d ${STAGING_INCDIR}/${PN}/net80211
34         cp --dereference include/compat.h ${STAGING_INCDIR}/${PN}/include/
35         cp --dereference net80211/*.h ${STAGING_INCDIR}/${PN}/net80211/
36 }
37
38 do_install() {
39         install -d ${D}${sbindir}
40         oe_runmake DESTDIR=${D} BINDIR=${sbindir} install
41 }
42
43 pkg_postinst() {
44 if test "x$D" != "x"; then
45        exit 1
46 else
47         depmod -ae
48 fi
49 }
50
51 PACKAGES = "${PN}-modules ${PN}-tools"
52 FILES_${PN}-modules = "/lib/modules/"
53 FILES_${PN}-tools = "/usr/"