summaryrefslogtreecommitdiff
path: root/package/libnfc-nci/Makefile
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2016-03-22 09:07:43 +0100
committerWaldemar Brodkorb <wbx@openadk.org>2016-03-22 09:08:00 +0100
commit561a2b5764af1fd1301e24d703e680aafc0ffae5 (patch)
treebc88af3969cdecf145d86ade01a26efe279c4a64 /package/libnfc-nci/Makefile
parentab20306b70b10a860b566bf912487d1f8a6eb22e (diff)
nfc: add driver and library for nfc-nci chips
Diffstat (limited to 'package/libnfc-nci/Makefile')
-rw-r--r--package/libnfc-nci/Makefile35
1 files changed, 35 insertions, 0 deletions
diff --git a/package/libnfc-nci/Makefile b/package/libnfc-nci/Makefile
new file mode 100644
index 000000000..2632d167c
--- /dev/null
+++ b/package/libnfc-nci/Makefile
@@ -0,0 +1,35 @@
+# This file is part of the OpenADK project. OpenADK is copyrighted
+# material, please see the LICENCE file in the top-level directory.
+
+include $(ADK_TOPDIR)/rules.mk
+
+PKG_NAME:= libnfc-nci
+PKG_VERSION:= fbad2fb842f2b4e7cfd5bc82136a9381402c07ce
+PKG_RELEASE:= 1
+PKG_GIT:= hash
+PKG_DESCR:= nfc nci library
+PKG_SECTION:= libs/net
+PKG_DEPENDS:= nxp-pn5xx
+PKG_NEEDS:= threads rt c++
+PKG_URL:= https://github.com/NXPNFCLinux/linux_libnfc-nci
+PKG_SITES:= https://github.com/NXPNFCLinux/linux_libnfc-nci.git
+PKG_OPTS:= dev
+
+include $(ADK_TOPDIR)/mk/package.mk
+
+$(eval $(call PKG_template,LIBNFC_NCI,libnfc-nci,$(PKG_VERSION)-$(PKG_RELEASE),$(PKG_DEPENDS),$(PKG_DESCR),$(PKG_SECTION),$(PKG_OPTS)))
+
+AUTOTOOL_STYLE:= bootstrap
+
+libnfc-nci-install:
+ $(INSTALL_DIR) $(IDIR_LIBNFC_NCI)/etc
+ $(INSTALL_DIR) $(IDIR_LIBNFC_NCI)/usr/lib
+ $(INSTALL_DIR) $(IDIR_LIBNFC_NCI)/usr/sbin
+ $(CP) $(WRKINST)/usr/lib/libnfc*.so* \
+ $(IDIR_LIBNFC_NCI)/usr/lib
+ $(CP) $(WRKINST)/usr/sbin/nfcDemoApp \
+ $(IDIR_LIBNFC_NCI)/usr/sbin
+ $(CP) $(WRKINST)/etc/libnfc* \
+ $(IDIR_LIBNFC_NCI)/etc
+
+include $(ADK_TOPDIR)/mk/pkg-bottom.mk