This repository contains instructions for PN71XX support in libnfc on Debian.
debian/changelog
: Additional entry to Debian'schangelog
file in source packagedebian/patches/
: The raw patches that are being applied by the Debian patchdebian/rules.patch
: Patch for Debian packagerules
build_deb.sh
: Automatically builds and installs patched libnfc versionpatch_deb_rules.sh
: Applies patches to Debian build system (changelog, patch series, rules, ...)
To use the PN71XX with libnfc, one must first install libnfc-nci
and then install a patched libnfc
version.
- Download the libnfc-nci source code
- Install build dependencies:
$ apt install autotools aclocal automake libtool
$ ./bootstrap
$ ./configure --enable-alt
$ make
$ make install
. This installs the library to/usr/local/
.
build_deb.sh
performs the following steps automatically:
- Download
libnfc
source package:$ apt-get source libnfc
- Install build dependencies:
$ apt build-dep libnfc
- Apply patches to Debian build system:
$ ./patch_deb_rules.sh {path-to-downloaded-libnfc}
- Change to
libnfc-1.7.1/debian
directory - Building:
$ debuild -b -uc -us
- Install packages using
$ dpkg -i
- Define connection string in
/etc/nfc/libnfc.conf
. For example on RaspberryPI:device.connstring = "pn71xx:/dev/i2c-1"
- Use
libnfc
as usual