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

Issue 2809037: Make vboot_reference build in MSVC command line environment. (Closed)

Created:
10 years, 6 months ago by vb
Modified:
9 years, 6 months ago
CC:
chromium-os-reviews_chromium.org, Randall Spangler, Bill Richardson, gauravsh, Luigi Semenzato
Base URL:
ssh://git@chromiumos-git/vboot_reference.git
Visibility:
Public.

Description

Make vboot_reference build in MSVC command line environment. This is a mostly NOOP change which modifies the source code to compile cleanly in the MSVC command line build environment. A new makefile is introduced (msc/nmakefile) along with a README.txt in the same directory explaining how to build the code in the DOS window. As of this submission the build is running in a 32 bit environment, the intention is to use the same makefile for 64 bit builds in the future. Enabling high compilation warnings level allowed to identify a couple of bugs in the code which are being fixed. Not all sources are being compiled in the MSVC environment, only those in firmware/ and most of those in test/ subdirectories. The benchmark calculations require porting of the timer facilities and are being postponed. TEST Built in DOS and linux environments. Ran unit tests in linux environment.

Patch Set 1 : Make vboot_reference buildable in MSVC command line environment. #

Total comments: 10

Patch Set 2 : Modified to address review comments. #

Patch Set 3 : Convert pragmas to macros. #

Patch Set 4 : Integrated trunk changes. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+214 lines, -100 lines) Patch
M Makefile View 1 2 1 chunk +1 line, -2 lines 0 comments Download
M firmware/include/sysincludes.h View 1 2 1 chunk +10 lines, -2 lines 0 comments Download
M firmware/include/utility.h View 1 chunk +2 lines, -2 lines 0 comments Download
M firmware/lib/cgptlib/cgptlib_internal.c View 2 chunks +5 lines, -5 lines 0 comments Download
M firmware/lib/cgptlib/include/cgptlib_internal.h View 1 chunk +1 line, -1 line 0 comments Download
M firmware/lib/cgptlib/include/gpt.h View 1 2 2 chunks +2 lines, -6 lines 0 comments Download
M firmware/lib/include/vboot_struct.h View 1 2 2 chunks +2 lines, -6 lines 0 comments Download
M firmware/lib/rollback_index.c View 1 2 2 chunks +5 lines, -1 line 0 comments Download
M firmware/lib/vboot_kernel.c View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
M firmware/stub/boot_device_stub.c View 1 2 1 chunk +3 lines, -0 lines 0 comments Download
M firmware/stub/include/biosincludes.h View 1 chunk +20 lines, -0 lines 0 comments Download
M firmware/stub/load_firmware_stub.c View 3 chunks +5 lines, -1 line 0 comments Download
M firmware/stub/tlcl.c View 1 2 1 chunk +3 lines, -0 lines 0 comments Download
M firmware/stub/utility_stub.c View 1 chunk +5 lines, -4 lines 0 comments Download
M firmware/version.c View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M host/include/host_common.h View 1 chunk +0 lines, -2 lines 0 comments Download
M host/include/host_key.h View 1 chunk +0 lines, -2 lines 0 comments Download
M host/include/host_keyblock.h View 1 chunk +0 lines, -2 lines 0 comments Download
M host/include/host_misc.h View 1 chunk +0 lines, -3 lines 0 comments Download
M host/include/host_signature.h View 1 chunk +0 lines, -2 lines 0 comments Download
A msc/README.txt View 1 chunk +25 lines, -0 lines 0 comments Download
A msc/nmakefile View 1 chunk +55 lines, -0 lines 0 comments Download
M tests/cgptlib_test.h View 1 2 2 chunks +4 lines, -5 lines 0 comments Download
M tests/cgptlib_test.c View 1 2 6 chunks +26 lines, -23 lines 0 comments Download
M tests/crc32_test.c View 1 1 chunk +1 line, -0 lines 0 comments Download
M tests/rollback_index_mock.c View 1 2 2 chunks +3 lines, -1 line 0 comments Download
M tests/sha_tests.c View 1 2 1 chunk +3 lines, -0 lines 0 comments Download
M tests/test_common.h View 2 chunks +8 lines, -2 lines 0 comments Download
M tests/test_common.c View 1 chunk +0 lines, -5 lines 0 comments Download
M tests/timer_utils.h View 1 chunk +3 lines, -0 lines 0 comments Download
M tests/vboot_common2_tests.c View 4 chunks +5 lines, -4 lines 0 comments Download
M tests/vboot_common3_tests.c View 3 chunks +4 lines, -4 lines 0 comments Download
M tests/vboot_common_tests.c View 1 2 3 chunks +10 lines, -8 lines 0 comments Download
M utility/load_kernel_test.c View 1 chunk +0 lines, -6 lines 0 comments Download

Messages

Total messages: 8 (0 generated)
vb
10 years, 6 months ago (2010-06-24 18:28:04 UTC) #1
gauravsh
Drive by... http://codereview.chromium.org/2809037/diff/2002/8008 File firmware/lib/rollback_index.c (right): http://codereview.chromium.org/2809037/diff/2002/8008#newcode20 firmware/lib/rollback_index.c:20: #pragma warning (disable: 4127) comment? http://codereview.chromium.org/2809037/diff/2002/8008#newcode374 firmware/lib/rollback_index.c:374: ...
10 years, 6 months ago (2010-06-24 18:42:36 UTC) #2
vb
Added comments to all cases where pragmas are used and modified the order of includes. ...
10 years, 6 months ago (2010-06-24 19:16:14 UTC) #3
gauravsh
Thanks! LGTM if wfrichar/rspangler are ok with this too. On 2010/06/24 19:16:14, vb wrote: > ...
10 years, 6 months ago (2010-06-24 19:20:32 UTC) #4
Bill Richardson
I really dislike seeing raw pragmas, even if we tell the compiler to ignore them. ...
10 years, 6 months ago (2010-06-24 19:29:47 UTC) #5
Luigi Semenzato
Is there an agreement that this code may be compiled on Windows, but not edited? ...
10 years, 6 months ago (2010-06-24 20:29:52 UTC) #6
vb
Luigi, the intention is to be able to run test cases in Windows environment, all ...
10 years, 6 months ago (2010-06-24 20:51:07 UTC) #7
Randall Spangler
10 years, 6 months ago (2010-06-24 21:31:47 UTC) #8
I agree it'd be preferable to use __pragma() instead of #pragma, with
sysincludes defining that to nothing for gcc.

LGTM other than that.

Thanks
 -R

Powered by Google App Engine
This is Rietveld 408576698