[devbundle] Statically link opentitantool & hsmtool
Opentitantool depends on libudev which can cause portability issues between different runtime environments.
- Add a flag which permits statically linking host tools.
- Supply
libudev-zerowhich is a no-dependencies replacement for libudev. - Add some flags machinery for controlling whether opentitantool is statically linked (default: no).
- Deliver statically linked opentitantool and hsmtool in the devbundle.
Yes, libusb is my question too. On my machine OT-tool binary depends on (apart from libssl,libcrypto and glibc libraries), libftdi1/libusb-1.0/libudev. (It does not depend on libelf)
Yes, libusb is my question too. On my machine OT-tool binary depends on (apart from libssl,libcrypto and glibc libraries),
libftdi1/libusb-1.0/libudev. (It does not depend on libelf)
Libusb depends on libudev and libudev doesn't typically distribute a static-linked archive.
Libelf is for verilator. The static-linked libelf currently in debian-based distros has a bug and can't correctly link statically (it's missing a sub-dependency from within libelf itself). We can remove libelf as soon as debian starts distributing libelf.