resize-dynparts: Make binary fully static
This change ensures that `resize-dynparts` binary provided in a delta
will run on a system with an older GLib version.
OpenSSL dependency of liblp is removed. Linking statically to libcrypto
proved to be to difficult. The only functionality that was used was
calculating sha256 hashes. This is now implemented in source of
liblp.
sha256 functionality taken from:
https://android.googlesource.com/platform/system/core/+/
515e1639ef0ab5e3149fafeffce826cf654d616f
files:
src/dynamic-partitions/liblp/sha256/hash-internal.h
src/dynamic-partitions/liblp/sha256/sha256.c
src/dynamic-partitions/liblp/sha256/sha256.h
Change-Id: Ifde513404d1d63ec3a99fe4e29c3ef4a852f0dbe