diff options
author | Nam T. Nguyen <namnguyen@chromium.org> | 2014-11-13 19:30:46 -0800 |
---|---|---|
committer | chrome-internal-fetch <chrome-internal-fetch@google.com> | 2014-11-14 22:46:59 +0000 |
commit | ab899591808dd3e5f955ab7693b54a83389cd35f (patch) | |
tree | 8d12700b5be62ac132fd09e3cb17f6b6cce4b70c /Makefile | |
parent | a524a3a51591618c1395cb9e1238ee72b3f5e767 (diff) | |
download | vboot-ab899591808dd3e5f955ab7693b54a83389cd35f.tar.gz |
vboot: cgpt: Treat drive_path as the GPT storage
Previously, "cgpt" called out to "flashrom" directly to read and write
NOR area. This CL removes that dependency and always treats "drive_path"
as the storage of GPT structs. This makes it consistent that whatever
device that cgpt reads from or writes to is always the device that
stores GPT structs. We only need to pass in the size of the drive that
contains the partitions, but we do not need to access to that drive.
More information is in the bug.
BUG=chromium:432611
BRANCH=none
TEST=unittest
CQ-DEPEND=CL:228942
Change-Id: Id0139adf70463cec4f2924de8b9a4725dbec822b
Reviewed-on: https://chromium-review.googlesource.com/229736
Reviewed-by: Bill Richardson <wfrichar@chromium.org>
Commit-Queue: Nam Nguyen <namnguyen@chromium.org>
Tested-by: Nam Nguyen <namnguyen@chromium.org>
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 8 |
1 files changed, 2 insertions, 6 deletions
@@ -361,7 +361,6 @@ UTILLIB_SRCS = \ cgpt/cgpt_repair.c \ cgpt/cgpt_prioritize.c \ cgpt/cgpt_common.c \ - cgpt/drive.c \ cgpt/flash_ts.c \ cgpt/flash_ts_drv.c \ firmware/lib/cgptlib/mtdlib.c \ @@ -391,7 +390,6 @@ HOSTLIB_SRCS = \ cgpt/cgpt_common.c \ cgpt/cgpt_create.c \ cgpt/cgpt_prioritize.c \ - cgpt/drive.c \ cgpt/flash_ts.c \ cgpt/flash_ts_drv.c \ firmware/lib/cgptlib/cgptlib_internal.c \ @@ -424,7 +422,6 @@ TINYHOSTLIB_SRCS = \ cgpt/cgpt_common.c \ cgpt/cgpt_create.c \ cgpt/cgpt_prioritize.c \ - cgpt/drive.c \ cgpt/flash_ts.c \ cgpt/flash_ts_drv.c \ firmware/lib/cgptlib/cgptlib_internal.c \ @@ -432,8 +429,7 @@ TINYHOSTLIB_SRCS = \ firmware/lib/cgptlib/mtdlib.c \ firmware/lib/utility_string.c \ firmware/stub/utility_stub.c \ - futility/dump_kernel_config_lib.c \ - host/lib/fmap.c + futility/dump_kernel_config_lib.c TINYHOSTLIB_OBJS = ${TINYHOSTLIB_SRCS:%.c=${BUILD}/%.o} @@ -1134,7 +1130,7 @@ runcgpttests: test_setup runtestscripts: test_setup genfuzztestcases tests/load_kernel_tests.sh tests/run_cgpt_tests.sh ${BUILD_RUN}/cgpt/cgpt - tests/run_cgpt_tests.sh ${BUILD_RUN}/cgpt/cgpt -N=512,32,1,3 + tests/run_cgpt_tests.sh ${BUILD_RUN}/cgpt/cgpt -D 358400 tests/run_preamble_tests.sh tests/run_rsa_tests.sh tests/run_vbutil_kernel_arg_tests.sh |