You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

60 lines
1.5 KiB

  1. #
  2. # Copyright (C) 2020 Linos Giannopoulos
  3. #
  4. # This is free software, licensed under the GNU General Public License v2.
  5. # See /LICENSE for more information.
  6. #
  7. include $(TOPDIR)/rules.mk
  8. PKG_NAME:=libfido2
  9. PKG_VERSION:=1.6.0
  10. PKG_RELEASE:=1
  11. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  12. PKG_SOURCE_URL:=https://codeload.github.com/Yubico/libfido2/tar.gz/$(PKG_VERSION)?
  13. PKG_HASH:=6aed47aafd22be49c38f9281fb88ccd08c98678d9b8c39cdc87d1bb3ea2c63e4
  14. PKG_FORTIFY_SOURCE:=0
  15. CMAKE_INSTALL:=1
  16. TARGET_CFLAGS += -Wno-error=overflow -Wno-error=sign-conversion
  17. PKG_MAINTAINER:=Linos Giannopoulos <linosgian00+openwrt@gmail.com>
  18. PKG_LICENSE:=GPL-3.0-or-later
  19. PKG_LICENSE_FILES:=COPYING
  20. include $(INCLUDE_DIR)/package.mk
  21. include $(INCLUDE_DIR)/cmake.mk
  22. define Package/libfido2
  23. SECTION:=libs
  24. CATEGORY:=Libraries
  25. TITLE:=FIDO2 Library
  26. URL:=https://github.com/Yubico/libfido2
  27. ABI_VERSION:=1
  28. DEPENDS += +libcbor +libopenssl +libudev
  29. endef
  30. define Package/libfido2/description
  31. libfido2 provides library functionality and command-line tools to communicate with a FIDO device over USB, and to verify attestation and assertion signatures.
  32. libfido2 supports the FIDO U2F (CTAP 1) and FIDO 2.0 (CTAP 2) protocols.
  33. endef
  34. CMAKE_OPTIONS += \
  35. -DBUILD_EXAMPLES=OFF \
  36. -DBUILD_MANPAGES=OFF \
  37. -DBUILD_SHARED_LIBS=ON \
  38. -DBUILD_STATIC_LIBS=OFF \
  39. -DBUILD_TOOLS=OFF \
  40. -DFUZZ=OFF \
  41. -DLIBFUZZER=OFF \
  42. -DUSE_HIDAPI=OFF
  43. define Package/libfido2/install
  44. $(INSTALL_DIR) $(1)/usr/lib
  45. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libfido2.so.* $(1)/usr/lib/
  46. endef
  47. $(eval $(call BuildPackage,libfido2))