Public feed
#378228
Recipe: rt2571_1.0.3.6.bb:
DESCRIPTION = "Driver for Ralink rt2571 USB 802.11g WiFi sticks"
SECTION = "kernel/modules"
LICENSE = "GPL"
SRC_URI = "http://www.ralinktech.com/ralink/data/RT73_Linux_STA_Drv1.0.3.6.tar.gz \
file://anyarch.patch;patch=1"
inherit module
S = "${WORKDIR}/RT73_Linux_STA_Drv1.0.3.6/Module/"
EXTRA_OEMAKE = "-C ${STAGING_KERNEL_DIR} SUBDIRS=${S} CC='${CC}' LDFLAGS=''"
do_configure() {
rm -f ${S}/config.mk
echo "LINUX_SRC=${STAGING_KERNEL_DIR}" >${S}/config.mk
echo "TARGET_MODDIR=.">>${S}/config.mk
mv -f ${S}/Makefile.6 ${S}/Makefile
}
do_compile() {
oe_runmake -C ${STAGING_KERNEL_DIR} SUBDIRS=${S} LDFLAGS='' modules
}
do_install() {
install -d ${D}${base_libdir}/modules/${KERNEL_VERSION}/extra
install -m 0644 rt73${KERNEL_OBJECT_SUFFIX} ${D}${base_libdir}/modules/${KERNEL_VERSION}/extra/
install -d ${D}${base_libdir}/firmware
install -m 0644 rt73.bin ${D}${base_libdir}/firmware/
install -m 0644 rt73sta.dat ${D}${base_libdir}/firmware/
}
PACKAGES += "${PN}-firmware"
FILES_${PN}-firmware = "${base_libdir}"
RDEPENDS_${PN} += "${PN}-firmware"
Index: Module/rt_config.h
Extra patch:
===================================================================
--- Module.orig/rt_config.h 2007-02-13 15:01:18.000000000 +0100
+++ Module/rt_config.h 2007-02-13 15:01:27.000000000 +0100
@@ -96,7 +96,7 @@
#include <asm/io.h>
#include <asm/irq.h>
#include <asm/uaccess.h>
-#include <asm-i386/atomic.h>
+#include <asm/atomic.h>
// load firmware
#define __KERNEL_SYSCALLS__
hrw@home:~/devel/OH/vernier/trunk/openembedded/packages/rt2x00$