mirror of
https://github.com/linuxboot/heads.git
synced 2024-12-18 20:47:55 +00:00
modules/libremkey-hotp-verification: make reproducible
Modeled after modules/tpmtotp, use a specific git commit hash for module libremkey-hotp-verification. Add hidapi as a submodule with dummy/placeholder in modules (like coreboot-blobs), also specified by git commit hash. Adjust libremkey-hotp-verification patch file name so patch applied properly. Addresses issue #640 Test: build Librem 13v4 Signed-off-by: Matt DeVillier <matt.devillier@puri.sm>
This commit is contained in:
parent
8e23a54f28
commit
28fedf9a7e
2
modules/hidapi
Normal file
2
modules/hidapi
Normal file
@ -0,0 +1,2 @@
|
||||
# empty placeholder file
|
||||
# This submodule is defined in modules/libremkey-hotp-verification
|
@ -2,9 +2,11 @@ modules-$(CONFIG_LIBREMKEY) += libremkey-hotp-verification
|
||||
|
||||
libremkey-hotp-verification_depends := libusb $(musl_dep)
|
||||
|
||||
libremkey-hotp-verification_version := git
|
||||
libremkey-hotp-verification_dir := libremkey-hotp-verification
|
||||
libremkey-hotp-verification_repo := --recursive https://github.com/Nitrokey/nitrokey-hotp-verification
|
||||
libremkey-hotp-verification_version := e5fa36a7a1950226d0ef94e2eeed0ffb510eba89
|
||||
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 := 668113ebc21cc875d49266c8d3a47acfd524a8d6b64f75b7ce5833d595415469
|
||||
|
||||
libremkey-hotp-verification_target := \
|
||||
$(MAKE_JOBS) \
|
||||
@ -18,3 +20,18 @@ libremkey-hotp-verification_configure := \
|
||||
INSTALL="$(INSTALL)" \
|
||||
CROSS="$(CROSS)" \
|
||||
cmake -DCMAKE_TOOLCHAIN_FILE=./Toolchain-heads.cmake -DCMAKE_AR="$(CROSS)ar" .
|
||||
|
||||
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
|
||||
|
Loading…
Reference in New Issue
Block a user