This repository contains instructions for PN71XX support in libnfc on Debian.
debian/changelog: Additional entry to Debian'schangelogfile in source packagedebian/patches/: The raw patches that are being applied by the Debian patchdebian/rules.patch: Patch for Debian packagerulesbuild_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
libnfcsource 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/debiandirectory - 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
libnfcas usual