2020-06-11 13:54:10 +00:00
|
|
|
modules-$(CONFIG_HOTPKEY) += hotp-verification
|
|
|
|
|
|
|
|
hotp-verification_depends := libusb $(musl_dep)
|
|
|
|
|
2024-05-21 11:24:36 +00:00
|
|
|
# v1.6
|
|
|
|
hotp-verification_version := e9050e0c914e7a8ffef5d1c82a014e0e2bf79346
|
2020-06-11 13:54:10 +00:00
|
|
|
hotp-verification_dir := hotp-verification-$(hotp-verification_version)
|
|
|
|
hotp-verification_tar := nitrokey-hotp-verification-$(hotp-verification_version).tar.gz
|
|
|
|
hotp-verification_url := https://github.com/Nitrokey/nitrokey-hotp-verification/archive/$(hotp-verification_version).tar.gz
|
2024-05-21 11:24:36 +00:00
|
|
|
hotp-verification_hash := 480c978d3585eee73b9aa5186b471d4caeeeeba411217e1544eef7cfd90312ac
|
2020-06-11 13:54:10 +00:00
|
|
|
|
|
|
|
hotp-verification_target := \
|
|
|
|
$(MAKE_JOBS) \
|
|
|
|
$(CROSS_TOOLS) \
|
|
|
|
|
|
|
|
hotp-verification_output := \
|
2020-06-25 13:35:47 +00:00
|
|
|
hotp_verification \
|
|
|
|
hotp_initialize
|
2020-06-11 13:54:10 +00:00
|
|
|
|
|
|
|
hotp-verification_configure := \
|
|
|
|
INSTALL="$(INSTALL)" \
|
|
|
|
CROSS="$(CROSS)" \
|
2023-01-11 02:35:56 +00:00
|
|
|
$(CROSS_TOOLS) $(MAKE) LDFLAGS="$(INSTALL)/lib/libusb-1.0.so" GITVERSION="" LIBUSB_FLAGS="-I$(INSTALL)/include/libusb-1.0" PKGCONFIG="" && $(MAKE) install INSTALL="$(INSTALL)"
|
2020-06-11 13:54:10 +00:00
|
|
|
|
|
|
|
hotp-verification_depends += hidapi
|
|
|
|
modules-y += hidapi
|
|
|
|
|
|
|
|
hidapi_version := e5ae0d30a523c565595bdfba3d5f2e9e1faf0bd0
|
|
|
|
hidapi_dir := hotp-verification-$(hotp-verification_version)/hidapi
|
|
|
|
hidapi_tar := hidapi-$(hidapi_version).tar.xz
|
|
|
|
hidapi_url := https://github.com/Nitrokey/hidapi/archive/$(hidapi_version).tar.gz
|
|
|
|
hidapi_hash := acc2a5089a8917085c2b3ebe9446065a21c760ba7e13cb54917043c4122188e0
|
|
|
|
|
|
|
|
|
|
|
|
## hidapi will be built as part of hotp-verification
|
|
|
|
## so nothing to do here (but need make to be happy)
|
|
|
|
hidapi_output := .built
|
|
|
|
hidapi_configure := echo -e 'all:\n\ttouch .built' > Makefile
|