with tempfile.NamedTemporaryFile(suffix='.sig') as signature_file:
table_file.write(table)
table_file.flush()
- cmd = " ".join((signer_path, table_file.name, key_path, signature_file.name))
+ cmd = " ".join((signer_path, signer_args, table_file.name,
+ key_path, signature_file.name))
print cmd
- run(cmd)
+ runcmd = cmd.split()
+ sp = subprocess.Popen(runcmd)
+ sp.wait()
return signature_file.read()
def build_verity_table(block_device, data_blocks, root_hash, salt):
LOCAL_SHARED_LIBRARIES := libbase
LOCAL_CFLAGS += -Wall -Werror -O3
LOCAL_C_INCLUDES += external/fec
-include $(BUILD_HOST_EXECUTABLE)
+include $(BUILD_HOST_EXECUTABLE)
-
- include $(CLEAR_VARS)
- LOCAL_CLANG := true
- LOCAL_SANITIZE := integer
- LOCAL_MODULE := fec
- LOCAL_FORCE_STATIC_EXECUTABLE := true
- LOCAL_SRC_FILES := main.cpp image.cpp
- LOCAL_MODULE_TAGS := optional
- LOCAL_STATIC_LIBRARIES := \
- libcrypto_utils_static \
- libcrypto_static \
- libfec \
- libfec_rs \
- libbase \
- libext4_utils_static \
- libsquashfs_utils \
- libcutils
- LOCAL_CFLAGS += -Wall -Werror -O3 -DIMAGE_NO_SPARSE=1
- LOCAL_C_INCLUDES += external/fec
- include $(BUILD_EXECUTABLE)