Patchwork [07/16] Add Wi-Fi support to at91

login
register
mail settings
Submitter Ulf Samuelsson
Date Jan. 31, 2011, 8:58 p.m.
Message ID <1296507499-5245-8-git-send-email-ulf.samuelsson@atmel.com>
Download mbox | patch
Permalink /patch/430/
State Superseded
Headers show

Comments

Ulf Samuelsson - Jan. 31, 2011, 8:58 p.m.
Signed-off-by: Ulf Samuelsson <ulf.samuelsson@atmel.com>
---
 recipes/owl-wifi/owl-wifi_1.0.4.bb |   31 +++++++++++++++++++++++++++++++
 1 files changed, 31 insertions(+), 0 deletions(-)
 create mode 100644 recipes/owl-wifi/owl-wifi_1.0.4.bb

Patch

diff --git a/recipes/owl-wifi/owl-wifi_1.0.4.bb b/recipes/owl-wifi/owl-wifi_1.0.4.bb
new file mode 100644
index 0000000..5e31b82
--- /dev/null
+++ b/recipes/owl-wifi/owl-wifi_1.0.4.bb
@@ -0,0 +1,31 @@ 
+DESCRIPTION = "Driver for HD Wireless Wi-Fi device"
+HOMEPAGE = "http://www.hd-wireless.se"
+PRIORITY = "optional"
+SECTION = "kernel/modules"
+LICENSE = "GPL"
+PR = "r1"
+RDEPENDS = "wireless-tools \
+	 wpa-supplicant \
+	 "
+
+SRC_URI = "http://www.hd-wireless.se/images/stories/public_pdf/owl-linux-arm-${PV}.tar.gz \
+	"
+
+S = "${WORKDIR}/owl-linux-arm-${PV}"
+
+inherit module
+
+do_compile () {
+        unset CFLAGS CPPFLAGS CXXFLAGS LDFLAGS CC LD CPP
+        oe_runmake 'MODPATH=${D}${base_libdir}/modules/${KERNEL_VERSION}/kernel/drivers/net' \
+                   'KERNELDIR=${STAGING_KERNEL_DIR}' \
+                   'KDIR=${STAGING_KERNEL_DIR}' \
+                   'KERNEL_VERSION=${KERNEL_VERSION}' \
+                   'CC=${KERNEL_CC}' \
+                   'LD=${KERNEL_LD}'
+}
+
+do_install() {
+        install -d ${D}${base_libdir}/modules/${KERNEL_VERSION}/kernel/drivers/net
+        install -m 0644 ${S}/owl*${KERNEL_OBJECT_SUFFIX} ${D}${base_libdir}/modules/${KERNEL_VERSION}/kernel/drivers/net
+}