summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--packages/librfid/.mtn2git_empty0
-rw-r--r--packages/librfid/files/.mtn2git_empty0
-rw-r--r--packages/librfid/files/mifare_ul_timeout.patch13
-rw-r--r--packages/librfid/librfid_svn.bb19
4 files changed, 32 insertions, 0 deletions
diff --git a/packages/librfid/.mtn2git_empty b/packages/librfid/.mtn2git_empty
new file mode 100644
index 0000000000..e69de29bb2
--- /dev/null
+++ b/packages/librfid/.mtn2git_empty
diff --git a/packages/librfid/files/.mtn2git_empty b/packages/librfid/files/.mtn2git_empty
new file mode 100644
index 0000000000..e69de29bb2
--- /dev/null
+++ b/packages/librfid/files/.mtn2git_empty
diff --git a/packages/librfid/files/mifare_ul_timeout.patch b/packages/librfid/files/mifare_ul_timeout.patch
new file mode 100644
index 0000000000..846aa8d9db
--- /dev/null
+++ b/packages/librfid/files/mifare_ul_timeout.patch
@@ -0,0 +1,13 @@
+--- librfid.orig/src/rfid_proto_mifare_ul.c (revision 2085)
++++ librfid/src/rfid_proto_mifare_ul.c (working copy)
+@@ -34,8 +34,8 @@
+
+
+ /* FIXME */
+-#define MIFARE_UL_READ_FWT 100
+-#define MIFARE_UL_WRITE_FWT 100
++#define MIFARE_UL_READ_FWT 200
++#define MIFARE_UL_WRITE_FWT 800
+
+ static int
+ mful_read(struct rfid_protocol_handle *ph, unsigned int page,
diff --git a/packages/librfid/librfid_svn.bb b/packages/librfid/librfid_svn.bb
new file mode 100644
index 0000000000..0033eb44df
--- /dev/null
+++ b/packages/librfid/librfid_svn.bb
@@ -0,0 +1,19 @@
+DESCRIPTION = "RFID library"
+SECTION = "devel"
+PRIORITY = "optional"
+LICENSE = "GPL"
+DEPENDS = "libusb"
+SRCNAME = "librfid"
+
+PV = "0.2.0+svnr${SRCREV}"
+
+SRC_URI = "svn://svn.gnumonks.org/trunk;module=${SRCNAME};proto=http \
+ file://mifare_ul_timeout.patch;patch=1"
+
+S = "${WORKDIR}/${SRCNAME}"
+
+inherit autotools
+
+do_stage() {
+ autotools_stage_all
+}