Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(105)

Issue 2438005: Much rearranging of cgptlib. Passes all its (new) unit tests. (Closed)

Created:
10 years, 6 months ago by Randall Spangler
Modified:
9 years, 7 months ago
Reviewers:
Bill Richardson
CC:
chromium-os-reviews_chromium.org
Base URL:
ssh://gitrw.chromium.org/chromiumos
Visibility:
Public.

Description

Much rearranging of cgptlib. Passes all its (new) unit tests. Also includes part of LoadKernel(), which I'll split into a separate CL. With some hacks, gets into VerifyKernel() before dying because I'm not passing in the right key blob. cgptlib is now pretty stable, and worth looking at. LoadKernel() less so. Thanks, Randall

Patch Set 1 #

Total comments: 3

Patch Set 2 : Merged with master #

Patch Set 3 : Pre commit #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1770 lines, -1849 lines) Patch
M src/platform/vboot_reference/tests/Makefile View 1 chunk +1 line, -1 line 0 comments Download
M src/platform/vboot_reference/tests/cgptlib_test.c View 1 12 chunks +707 lines, -757 lines 0 comments Download
D src/platform/vboot_reference/tests/quick_sort_test.h View 1 chunk +0 lines, -11 lines 0 comments Download
D src/platform/vboot_reference/tests/quick_sort_test.c View 1 chunk +0 lines, -137 lines 0 comments Download
M src/platform/vboot_reference/utility/Makefile View 1 2 chunks +4 lines, -0 lines 0 comments Download
M src/platform/vboot_reference/utility/cgpt/Makefile View 1 2 2 chunks +4 lines, -1 line 0 comments Download
M src/platform/vboot_reference/utility/cgpt/cgpt.h View 1 1 chunk +1 line, -0 lines 0 comments Download
M src/platform/vboot_reference/utility/cgpt/cgpt.c View 1 1 chunk +1 line, -0 lines 0 comments Download
M src/platform/vboot_reference/utility/cgpt/cgpt_add_modify_delete.c View 1 chunk +1 line, -0 lines 0 comments Download
M src/platform/vboot_reference/utility/cgpt/cgpt_attribute.c View 1 3 chunks +4 lines, -2 lines 0 comments Download
M src/platform/vboot_reference/utility/cgpt/cgpt_show.c View 1 1 chunk +1 line, -0 lines 0 comments Download
A src/platform/vboot_reference/utility/cgpt/cgpt_tofix.h View 1 2 1 chunk +40 lines, -0 lines 0 comments Download
A src/platform/vboot_reference/utility/cgpt/cgpt_tofix.c View 1 2 1 chunk +269 lines, -0 lines 0 comments Download
A src/platform/vboot_reference/utility/load_kernel_test.c View 1 1 chunk +125 lines, -0 lines 0 comments Download
M src/platform/vboot_reference/vboot_firmware/lib/cgptlib/cgptlib.c View 1 1 chunk +96 lines, -760 lines 0 comments Download
A src/platform/vboot_reference/vboot_firmware/lib/cgptlib/cgptlib_internal.c View 1 1 chunk +348 lines, -0 lines 0 comments Download
M src/platform/vboot_reference/vboot_firmware/lib/cgptlib/include/cgptlib.h View 6 chunks +4 lines, -33 lines 0 comments Download
M src/platform/vboot_reference/vboot_firmware/lib/cgptlib/include/cgptlib_internal.h View 1 3 chunks +72 lines, -46 lines 0 comments Download
M src/platform/vboot_reference/vboot_firmware/lib/cgptlib/include/gpt.h View 1 2 chunks +23 lines, -6 lines 0 comments Download
D src/platform/vboot_reference/vboot_firmware/lib/cgptlib/include/quick_sort.h View 1 chunk +0 lines, -23 lines 0 comments Download
D src/platform/vboot_reference/vboot_firmware/lib/cgptlib/quick_sort.c View 1 chunk +0 lines, -59 lines 0 comments Download
M src/platform/vboot_reference/vboot_firmware/lib/load_kernel_fw.c View 1 8 chunks +69 lines, -13 lines 0 comments Download

Messages

Total messages: 2 (0 generated)
Randall Spangler
10 years, 6 months ago (2010-06-02 07:30:05 UTC) #1
Bill Richardson
10 years, 6 months ago (2010-06-02 16:14:57 UTC) #2
I'd prefer a few tweaks, but LGTM once they're made.

http://codereview.chromium.org/2438005/diff/1/3
File src/platform/vboot_reference/tests/cgptlib_test.c (right):

http://codereview.chromium.org/2438005/diff/1/3#newcode35
src/platform/vboot_reference/tests/cgptlib_test.c:35: #define KERNEL_C 2 /*
Overload ROOTFS_A, for some GetNext tests */
We actually have partitions for KERNEL_C and ROOTFS_C. Maybe pick a different
name, so these aren't confused?

http://codereview.chromium.org/2438005/diff/1/6
File src/platform/vboot_reference/utility/Makefile (right):

http://codereview.chromium.org/2438005/diff/1/6#newcode56
src/platform/vboot_reference/utility/Makefile:56:
../vboot_firmware/stub/utility_stub.c $(LIBS) $(FWLIB)
../vboot_firmware/stub/utility_stub.c is already part of $(FWLIB), so this file
isn't needed, and the TODO comment has been done.

http://codereview.chromium.org/2438005/diff/1/16
File src/platform/vboot_reference/vboot_firmware/lib/cgptlib/cgptlib_internal.c
(right):

http://codereview.chromium.org/2438005/diff/1/16#newcode223
src/platform/vboot_reference/vboot_firmware/lib/cgptlib/cgptlib_internal.c:223:
* to check both entries.   To do this, we need to temporarily override
... or we could just compare only the fields we're interested in. I don't like
the idea of modifying things unless we absolutely have to (like CRC
computation).

Powered by Google App Engine
This is Rietveld 408576698