summaryrefslogtreecommitdiff
path: root/packages/madwifi
diff options
context:
space:
mode:
authorRod Whitby <rod@whitby.id.au>2006-04-14 22:18:02 +0000
committerOpenEmbedded Project <openembedded-devel@lists.openembedded.org>2006-04-14 22:18:02 +0000
commit7ffcf46fcc3998053b4780b9a515a8d7d9bcb294 (patch)
tree3969f25f362ee4792df2e26928d5b56f3def45b3 /packages/madwifi
parentaf72986b4e3099aef8678286fb5e498d542a6b13 (diff)
madwifi: Added madwifi-ng-modules, and included it in slugos-packages.
Diffstat (limited to 'packages/madwifi')
-rw-r--r--packages/madwifi/files/.mtn2git_empty0
-rw-r--r--packages/madwifi/files/10-xscale-be-elf-copts.patch8
-rw-r--r--packages/madwifi/files/10-xscale-le-elf-copts.patch8
-rw-r--r--packages/madwifi/madwifi-ng-modules_svn.bb41
4 files changed, 57 insertions, 0 deletions
diff --git a/packages/madwifi/files/.mtn2git_empty b/packages/madwifi/files/.mtn2git_empty
new file mode 100644
index 0000000000..e69de29bb2
--- /dev/null
+++ b/packages/madwifi/files/.mtn2git_empty
diff --git a/packages/madwifi/files/10-xscale-be-elf-copts.patch b/packages/madwifi/files/10-xscale-be-elf-copts.patch
new file mode 100644
index 0000000000..e3158c045c
--- /dev/null
+++ b/packages/madwifi/files/10-xscale-be-elf-copts.patch
@@ -0,0 +1,8 @@
+--- madwifi-ng/hal/public/xscale-be-elf.inc~ 2006-02-11 22:34:39.000000000 +1030
++++ madwifi-ng/hal/public/xscale-be-elf.inc 2006-04-12 06:10:47.736463272 +0930
+@@ -73,4 +73,4 @@
+ LDOPTS= -EB
+ COPTS+= -DAH_BYTE_ORDER=AH_BIG_ENDIAN -DAH_REGOPS_FUNC
+ COPTS+= -march=armv4 -mbig-endian -fno-strict-aliasing -fno-common -mapcs-32 \
+- -mtune=xscale -mshort-load-bytes -msoft-float -mfp=2
++ -mtune=xscale -malignment-traps -msoft-float -mfp=2
diff --git a/packages/madwifi/files/10-xscale-le-elf-copts.patch b/packages/madwifi/files/10-xscale-le-elf-copts.patch
new file mode 100644
index 0000000000..393167c165
--- /dev/null
+++ b/packages/madwifi/files/10-xscale-le-elf-copts.patch
@@ -0,0 +1,8 @@
+--- madwifi-ng/hal/public/xscale-le-elf.inc~ 2006-04-12 06:09:56.669226672 +0930
++++ madwifi-ng/hal/public/xscale-le-elf.inc 2006-04-12 05:52:11.658132968 +0930
+@@ -74,4 +74,4 @@
+ LDOPTS= -EL
+ COPTS+= -DAH_BYTE_ORDER=AH_LITTLE_ENDIAN -DAH_REGOPS_FUNC
+ COPTS+= -march=armv4 -mlittle-endian -fno-strict-aliasing -fno-common \
+- -mapcs-32 -mtune=xscale -mshort-load-bytes -msoft-float -mfp=2
++ -mapcs-32 -mtune=xscale -malignment-traps -msoft-float -mfp=2
diff --git a/packages/madwifi/madwifi-ng-modules_svn.bb b/packages/madwifi/madwifi-ng-modules_svn.bb
new file mode 100644
index 0000000000..5359ff3aa1
--- /dev/null
+++ b/packages/madwifi/madwifi-ng-modules_svn.bb
@@ -0,0 +1,41 @@
+DESCRIPTION = "Linux driver for 802.11a/b/g universal NIC cards using Atheros chip sets"
+SECTION = "base"
+PRIORITY = "optional"
+MAINTAINER = "NSLU2 Linux <nslu2-linux@yahoogroups.com>"
+LICENSE = "GPL"
+RDEPENDS = "kernel (${KERNEL_VERSION})"
+DEPENDS = "virtual/kernel"
+PV = "r1503-20060415"
+
+SRC_URI = "http://snapshots.madwifi.org/madwifi-ng/madwifi-ng-${PV}.tar.gz \
+ file://10-xscale-be-elf-copts.patch;patch=1 \
+ file://10-xscale-le-elf-copts.patch;patch=1"
+
+S = "${WORKDIR}/madwifi-ng-${PV}"
+
+inherit module-base
+
+EXTRA_OEMAKE = "LDFLAGS= KERNELPATH=${STAGING_KERNEL_DIR} KERNELRELEASE=${KERNEL_VERSION} TOOLPREFIX=${TARGET_PREFIX}"
+
+EXTRA_OEMAKE_prepend_slugos = "TARGET=xscale-${ARCH_BYTE_SEX}-elf "
+
+do_compile() {
+ oe_runmake all
+}
+
+do_install() {
+ install -d ${D}${sbindir}
+ oe_runmake DESTDIR=${D} BINDIR=${sbindir} install
+}
+
+pkg_postinst() {
+if test "x$D" != "x"; then
+ exit 1
+else
+ depmod -ae
+fi
+}
+
+PACKAGES = "madwifi-ng-tools ${PN}"
+FILES_${PN} = "/lib/modules/"
+FILES_madwifi-ng-tools = "/usr/"