Patchwork [7/8] Add Wi-Fi support to at91

login
register
mail settings
Submitter Ulf Samuelsson
Date Jan. 31, 2011, 7:51 p.m.
Message ID <1296503466-3877-7-git-send-email-ulf.samuelsson@atmel.com>
Download mbox | patch
Permalink /patch/411/
State Superseded
Headers show

Comments

Ulf Samuelsson - Jan. 31, 2011, 7:51 p.m.
---
 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
Khem Raj - Feb. 11, 2011, 11:49 p.m.
On (31/01/11 20:51), Ulf Samuelsson wrote:
> ---
>  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
> 
> 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"

new recipe starts with r0

> +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
> +}
> -- 
> 1.6.3.3
> 
> 
> _______________________________________________
> Openembedded-devel mailing list
> Openembedded-devel@lists.openembedded.org
> http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel

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
+}