summaryrefslogtreecommitdiff
path: root/packages
diff options
context:
space:
mode:
authorJeremy Lainé <jeremy.laine@m4x.org>2008-12-22 15:47:15 +0100
committerJeremy Lainé <jeremy.laine@m4x.org>2008-12-22 15:47:15 +0100
commitfc23dd387cac36d413021d51d9a5cc4ec1388a24 (patch)
tree89ac1a7396c5ecc37064695383a0ef85ad4be64f /packages
parent757e7502aab0d55f4ea57e7d712424951b0d2ec9 (diff)
librfid: add symlink to /dev/spidev for SPI backend
Diffstat (limited to 'packages')
-rw-r--r--packages/librfid/files/librfid.rules1
-rw-r--r--packages/librfid/librfid_svn.bb8
2 files changed, 8 insertions, 1 deletions
diff --git a/packages/librfid/files/librfid.rules b/packages/librfid/files/librfid.rules
new file mode 100644
index 0000000000..82c635a113
--- /dev/null
+++ b/packages/librfid/files/librfid.rules
@@ -0,0 +1 @@
+KERNEL=="spidev*", SYMLINK+="spidev"
diff --git a/packages/librfid/librfid_svn.bb b/packages/librfid/librfid_svn.bb
index 8cfa4c8ba9..49f9a95198 100644
--- a/packages/librfid/librfid_svn.bb
+++ b/packages/librfid/librfid_svn.bb
@@ -6,10 +6,11 @@ DEPENDS = "libusb"
SRCNAME = "librfid"
PV = "0.2.0+svnr${SRCREV}"
-PR = "r3"
+PR = "r4"
SRC_URI = "svn://svn.gnumonks.org/trunk;module=${SRCNAME};proto=http \
file://mifare_ul_timeout.patch;patch=1 \
+ file://librfid.rules \
"
SRC_URI_append_boc01 = "file://spidev.patch;patch=1"
@@ -20,6 +21,11 @@ S = "${WORKDIR}/${SRCNAME}"
inherit autotools
+do_install_append() {
+ install -d ${D}/${sysconfdir}/udev/rules.d
+ install -m 0644 ${WORKDIR}/librfid.rules ${D}/${sysconfdir}/udev/rules.d/70-librfid.rules
+}
+
do_stage() {
autotools_stage_all
}