Patchworkβ [oe] ralink/rt3070 driver patch

login
register
about
Submitter Michael Lippautz
Date 2009-10-04 14:56:33
Message ID <1254668193.18167.4.camel@leeloo.somedomain>
Download mbox | patch
Permalink /patch/1089/
State Applied, archived
Headers show

Comments

Michael Lippautz - 2009-10-04 14:56:33
Hej all,

In order to get my Ralink usb/wifi stick running I needed the
ralink/rt3070 kernel-module recipe.

This recipce was missing a statement to copy the required driver file
(needed by the kernel module). Wifi stick works fine now.

git diff is attached (+ some minor tweaks to the recipce)

Regards,
Michael

Patch

diff --git a/recipes/ralink/rt3070_2.1.1.0.bb b/recipes/ralink/rt3070_2.1.1.0.bb
index d7709fa..07c453f 100644
--- a/recipes/ralink/rt3070_2.1.1.0.bb
+++ b/recipes/ralink/rt3070_2.1.1.0.bb
@@ -1,18 +1,21 @@ 
 DESCRIPTION = "Ralink 3070"
+SECTION = "kernel/modules"
 LICENSE = "GPLv2"
 
 inherit module
 
 SRC_URI = "http://www.ralinktech.com.tw/data/drivers/2009_0525_RT3070_Linux_STA_v${PV}.tar.bz2 \
-           file://makefile.patch;patch=1 \
-		   file://config.patch;patch=1 \
-"
+		file://makefile.patch;patch=1 \
+		file://config.patch;patch=1"
 
 EXTRA_OEMAKE = "LINUX_SRC=${STAGING_KERNEL_DIR}"
 
 S = "${WORKDIR}/2009_0525_RT3070_Linux_STA_v${PV}"
 
 do_install() {
-	mkdir -p ${D}/lib/modules/${KERNEL_VERSION}/kernel/drivers/net/wireless
-	cp ${S}/os/linux/rt3070sta.ko ${D}/lib/modules/${KERNEL_VERSION}/kernel/drivers/net/wireless
+	install -d ${D}/lib/modules/${KERNEL_VERSION}/kernel/drivers/net/wireless
+	install -m 0644 ${S}/os/linux/rt3070sta.ko ${D}${base_libdir}/modules/${KERNEL_VERSION}/kernel/drivers/net/wireless
+
+	install -d ${D}/etc/Wireless/RT2870STA
+	install -m 0644 ${S}/RT2870STA.dat ${D}/etc/Wireless/RT2870STA
 }