diff options
author | Jack Rosenthal <jrosenth@chromium.org> | 2019-12-06 09:48:59 -0700 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2019-12-07 08:51:30 +0000 |
commit | 1ba6d1f87c5d1ae85ef42a3fae30220892ca9c9f (patch) | |
tree | 9640baafe4f7e264cb685e9d726292b3128014f7 /Makefile | |
parent | a4f3615472dd64f41035897fa7adef4d870c8049 (diff) | |
download | vboot-1ba6d1f87c5d1ae85ef42a3fae30220892ca9c9f.tar.gz |
host/lib: add a subprocess library
This is a powerful library for interacting with processes. We'll be
able to clean up much of the code which manually sets up the pipes and
calls exec* with this well-tested and expressive abstraction.
This code will initially be used in crossystem for calling out to
flashrom instead of relying on mosys.
BUG=chromium:1030473
BRANCH=none
TEST=provided unit tests
Change-Id: I56f28419406d0b1299bb91058dd4500079b2435e
Signed-off-by: Jack Rosenthal <jrosenth@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/vboot_reference/+/1955805
Reviewed-by: Julius Werner <jwerner@chromium.org>
Reviewed-by: Joel Kitching <kitching@chromium.org>
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -465,6 +465,7 @@ UTILLIB_SRCS = \ host/lib/host_signature.c \ host/lib/host_signature2.c \ host/lib/signature_digest.c \ + host/lib/subprocess.c \ host/lib/util_misc.c \ host/lib21/host_fw_preamble.c \ host/lib21/host_key.c \ @@ -687,6 +688,7 @@ TEST_OBJS += ${TESTLIB_OBJS} TEST_NAMES = \ tests/cgptlib_test \ tests/sha_benchmark \ + tests/subprocess_tests \ tests/utility_string_tests \ tests/vboot_api_devmode_tests \ tests/vboot_api_kernel2_tests \ @@ -1277,6 +1279,7 @@ ifeq (${TPM2_MODE},) ${RUNTEST} ${BUILD_RUN}/tests/tlcl_tests endif endif + ${RUNTEST} ${BUILD_RUN}/tests/subprocess_tests ${RUNTEST} ${BUILD_RUN}/tests/utility_string_tests ${RUNTEST} ${BUILD_RUN}/tests/vboot_api_devmode_tests ${RUNTEST} ${BUILD_RUN}/tests/vboot_api_kernel2_tests |