diff --git a/Makefile b/Makefile index a3f73118..084ad033 100644 --- a/Makefile +++ b/Makefile @@ -428,7 +428,7 @@ bin_modules-$(CONFIG_FLASHTOOLS) += flashtools bin_modules-$(CONFIG_NEWT) += newt bin_modules-$(CONFIG_CAIRO) += cairo bin_modules-$(CONFIG_FBWHIPTAIL) += fbwhiptail -bin_modules-$(CONFIG_HOTPKEY) += libremkey-hotp-verification +bin_modules-$(CONFIG_HOTPKEY) += hotp-verification bin_modules-$(CONFIG_MSRTOOLS) += msrtools $(foreach m, $(bin_modules-y), \ diff --git a/modules/hidapi b/modules/hidapi index 0a0ab5b1..d62b4224 100644 --- a/modules/hidapi +++ b/modules/hidapi @@ -1,2 +1,2 @@ # empty placeholder file -# This submodule is defined in modules/libremkey-hotp-verification +# This submodule is defined in modules/hotp-verification diff --git a/modules/hotp-verification b/modules/hotp-verification new file mode 100644 index 00000000..164f2735 --- /dev/null +++ b/modules/hotp-verification @@ -0,0 +1,37 @@ +modules-$(CONFIG_HOTPKEY) += hotp-verification + +hotp-verification_depends := libusb $(musl_dep) + +hotp-verification_version := 1cf1e1f3601b79692b81d409597136b8ff7c723a +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 +hotp-verification_hash := 21152cfb272f8edeff1220065940d5d6dfc12dbb2a48b84e64b24f8fc89c2567 + +hotp-verification_target := \ + $(MAKE_JOBS) \ + $(CROSS_TOOLS) \ + +hotp-verification_output := \ + libremkey_hotp_verification \ + libremkey_hotp_initialize + +hotp-verification_configure := \ + INSTALL="$(INSTALL)" \ + CROSS="$(CROSS)" \ + $(CROSS_TOOLS) $(MAKE) LDFLAGS="$(INSTALL)/lib/libusb-1.0.so" && $(MAKE) install INSTALL="$(INSTALL)" + +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 diff --git a/modules/libremkey-hotp-verification b/modules/libremkey-hotp-verification deleted file mode 100644 index 81d0db75..00000000 --- a/modules/libremkey-hotp-verification +++ /dev/null @@ -1,37 +0,0 @@ -modules-$(CONFIG_HOTPKEY) += libremkey-hotp-verification - -libremkey-hotp-verification_depends := libusb $(musl_dep) - -libremkey-hotp-verification_version := 1cf1e1f3601b79692b81d409597136b8ff7c723a -libremkey-hotp-verification_dir := libremkey-hotp-verification-$(libremkey-hotp-verification_version) -libremkey-hotp-verification_tar := nitrokey-hotp-verification-$(libremkey-hotp-verification_version).tar.gz -libremkey-hotp-verification_url := https://github.com/Nitrokey/nitrokey-hotp-verification/archive/$(libremkey-hotp-verification_version).tar.gz -libremkey-hotp-verification_hash := 21152cfb272f8edeff1220065940d5d6dfc12dbb2a48b84e64b24f8fc89c2567 - -libremkey-hotp-verification_target := \ - $(MAKE_JOBS) \ - $(CROSS_TOOLS) \ - -libremkey-hotp-verification_output := \ - libremkey_hotp_verification \ - libremkey_hotp_initialize - -libremkey-hotp-verification_configure := \ - INSTALL="$(INSTALL)" \ - CROSS="$(CROSS)" \ - $(CROSS_TOOLS) $(MAKE) LDFLAGS="$(INSTALL)/lib/libusb-1.0.so" && $(MAKE) install INSTALL="$(INSTALL)" - -libremkey-hotp-verification_depends += hidapi -modules-y += hidapi - -hidapi_version := e5ae0d30a523c565595bdfba3d5f2e9e1faf0bd0 -hidapi_dir := libremkey-hotp-verification-$(libremkey-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 libremkey-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