mirror of
https://github.com/Telecominfraproject/OpenCellular.git
synced 2026-01-12 19:04:59 +00:00
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. Review URL: http://codereview.chromium.org/2809037
56 lines
1.5 KiB
Plaintext
56 lines
1.5 KiB
Plaintext
|
|
!IF "$(MOD)" == ""
|
|
!ERROR MOD (Make output dir) is not defined
|
|
!ENDIF
|
|
|
|
O = $(MOD)
|
|
R = z:\shared\vboot_reference
|
|
|
|
ALL_OBJS = $O\main.obj $O\stateful_util.obj $O\cgptlib_internal.obj \
|
|
$O\cgptlib.obj $O\crc32.obj $O\vboot_common.obj $O\vboot_kernel.obj \
|
|
$O\vboot_firmware.obj $O\rollback_index.obj $O\sha_utility.obj $O\rsa.obj \
|
|
$O\rsa_utility.obj $O\padding.obj $O\sha2.obj $O\sha1.obj \
|
|
$O\load_firmware_stub.obj $O\tlcl.obj $O\utility_stub.obj \
|
|
$O\boot_device_stub.obj $O\crc32_test.obj $O\rollback_index_mock.obj \
|
|
$O\test_common.obj $O\cgptlib_test.obj $O\rsa_padding_test.obj \
|
|
$O\sha_tests.obj $O\vboot_common_tests.obj $O\vboot_common2_tests.obj \
|
|
$O\vboot_common3_tests.obj
|
|
|
|
CFLAGS = $(CFLAGS) /I $R\firmware\lib\include
|
|
CFLAGS = $(CFLAGS) /I $R\firmware\lib\cgptlib\include
|
|
CFLAGS = $(CFLAGS) /I $R\firmware\include
|
|
CFLAGS = $(CFLAGS) /I $R\firmware\stub\include
|
|
CFLAGS = $(CFLAGS) /I $R\firmware\lib\cryptolib\include
|
|
CFLAGS = $(CFLAGS) /I $R\host\include
|
|
|
|
CFLAGS = $(CFLAGS) /W4 /WX /D TARGET_TEST_MODE
|
|
|
|
COMPILE = $(CC) $(CFLAGS) /Fo$@ -c $<
|
|
|
|
all: $(ALL_OBJS)
|
|
|
|
{$R\firmware\linktest}.c{$O}.obj:
|
|
$(COMPILE)
|
|
|
|
{$R\firmware\lib}.c{$O}.obj:
|
|
$(COMPILE)
|
|
|
|
{$R\firmware\lib\cgptlib}.c{$O}.obj:
|
|
$(COMPILE)
|
|
|
|
{$R\firmware\lib\cryptolib}.c{$O}.obj:
|
|
$(COMPILE)
|
|
|
|
{$R\firmware\stub}.c{$O}.obj:
|
|
$(COMPILE)
|
|
|
|
{$R\tests}.c{$O}.obj:
|
|
$(COMPILE)
|
|
|
|
#{$R\cgpt}.c{$O}.obj:
|
|
#$R/firmware/lib/cgptlibc.$O.obj:
|
|
#$R/firmware/lib/cryptolibc.$O.obj:
|
|
#$R/firmware/stubc.$O.obj:
|
|
#$R/utilityc.$O.obj:
|
|
# $(CC) $(CFLAGS) -Fd$O\ -c $<
|