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

Side by Side Diff: src/platform/vboot_reference/tests/Makefile

Issue 1599001: VBoot Reference: Refactor Pass 1: Split {firmware|kernel}_image (Closed)
Patch Set: Created 10 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 # Copyright (c) 2010 The Chromium OS Authors. All rights reserved. 1 # Copyright (c) 2010 The Chromium OS Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 CC ?= gcc 5 CC ?= gcc
6 CFLAGS ?= -Wall -DNDEBUG -O3 -Werror 6 CFLAGS ?= -Wall -DNDEBUG -O3 -Werror
7 INCLUDES ?= -I../include/ 7 INCLUDES ?= -I../include/
8 TOP ?= ../ 8 TOP ?= ../
9 9
10 BASE_LIBS = $(TOP)/crypto/libcrypto.a $(TOP)/common/libcommon.a 10 BASE_LIBS = $(TOP)/crypto/libcrypto.a $(TOP)/common/libcommon.a
11 IMAGE_LIBS = $(TOP)/utils/firmware_image.o $(TOP)/utils/kernel_image.o 11 IMAGE_LIBS = $(TOP)/utils/firmware_image.o \
12 » » $(TOP)/utils/firmware_image_fw.o \
13 » » $(TOP)/utils/kernel_image.o \
14 » » $(TOP)/utils/kernel_image_fw.o
12 UTIL_LIBS = $(TOP)/utils/file_keys.o $(TOP)/utils/signature_digest.o 15 UTIL_LIBS = $(TOP)/utils/file_keys.o $(TOP)/utils/signature_digest.o
13 LIBS = $(IMAGE_LIBS) $(UTIL_LIBS) -lcrypto $(BASE_LIBS) 16 LIBS = $(IMAGE_LIBS) $(UTIL_LIBS) -lcrypto $(BASE_LIBS)
14 17
15 tests: big_firmware_tests \ 18 TEST_BINS = big_firmware_tests \
16 » big_kernel_tests \ 19 » » big_kernel_tests \
17 » firmware_image_tests \ 20 » » firmware_image_tests \
18 » firmware_rollback_tests \ 21 » » firmware_rollback_tests \
19 » firmware_splicing_tests \ 22 » » firmware_splicing_tests \
20 » firmware_verify_benchmark \ 23 » » firmware_verify_benchmark \
21 » kernel_image_tests \ 24 » » kernel_image_tests \
22 » kernel_rollback_tests \ 25 » » kernel_rollback_tests \
23 » kernel_splicing_tests \ 26 » » kernel_splicing_tests \
24 » kernel_verify_benchmark \ 27 » » kernel_verify_benchmark \
25 » rsa_padding_test \ 28 » » rsa_padding_test \
26 » rsa_verify_benchmark \ 29 » » rsa_verify_benchmark \
27 » sha_benchmark \ 30 » » sha_benchmark \
28 » sha_tests \ 31 » » sha_tests \
29 » verify_firmware_fuzz_driver \ 32 » » verify_firmware_fuzz_driver \
30 » verify_kernel_fuzz_driver 33 » » verify_kernel_fuzz_driver
34
35 all: $(TEST_BINS)
31 36
32 big_firmware_tests: big_firmware_tests.c rollback_index_mock.c test_common.c 37 big_firmware_tests: big_firmware_tests.c rollback_index_mock.c test_common.c
33 $(CC) $(CFLAGS) $(INCLUDES) $^ -o $@ $(LIBS) 38 $(CC) $(CFLAGS) $(INCLUDES) $^ -o $@ $(LIBS)
34 39
35 big_kernel_tests: big_kernel_tests.c rollback_index_mock.c test_common.c 40 big_kernel_tests: big_kernel_tests.c rollback_index_mock.c test_common.c
36 $(CC) $(CFLAGS) $(INCLUDES) $^ -o $@ $(LIBS) 41 $(CC) $(CFLAGS) $(INCLUDES) $^ -o $@ $(LIBS)
37 42
38 firmware_image_tests: firmware_image_tests.c rollback_index_mock.c test_common.c 43 firmware_image_tests: firmware_image_tests.c rollback_index_mock.c test_common.c
39 $(CC) $(CFLAGS) $(INCLUDES) $^ -o $@ $(LIBS) 44 $(CC) $(CFLAGS) $(INCLUDES) $^ -o $@ $(LIBS)
40 45
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
80 $(CC) $(CFLAGS) $(INCLUDES) $^ -o $@ $(BASE_LIBS) 85 $(CC) $(CFLAGS) $(INCLUDES) $^ -o $@ $(BASE_LIBS)
81 86
82 verify_firmware_fuzz_driver: verify_firmware_fuzz_driver.c \ 87 verify_firmware_fuzz_driver: verify_firmware_fuzz_driver.c \
83 rollback_index_mock.c 88 rollback_index_mock.c
84 $(CC) $(CFLAGS) $(INCLUDES) $^ -o $@ $(LIBS) 89 $(CC) $(CFLAGS) $(INCLUDES) $^ -o $@ $(LIBS)
85 90
86 verify_kernel_fuzz_driver: verify_kernel_fuzz_driver.c rollback_index_mock.c 91 verify_kernel_fuzz_driver: verify_kernel_fuzz_driver.c rollback_index_mock.c
87 $(CC) $(CFLAGS) $(INCLUDES) $^ -o $@ $(LIBS) 92 $(CC) $(CFLAGS) $(INCLUDES) $^ -o $@ $(LIBS)
88 93
89 clean: 94 clean:
90 » rm -f big_firmware_tests \ 95 » rm -f $(TEST_BINS)
91 » » big_kernel_tests \
92 » » firmware_image_tests \
93 » » firmware_rollback_tests \
94 » » firmware_splicing_tests \
95 » » firmware_verify_benchmark \
96 » » kernel_image_tests \
97 » » kernel_rollback_tests \
98 » » kernel_splicing_tests \
99 » » kernel_verify_benchmark \
100 » » rsa_padding_test \
101 » » rsa_verify_benchmark \
102 » » sha_benchmark \
103 » » sha_tests \
104 » » verify_firmware_fuzz_driver \
105 » » verify_kernel_fuzz_driver
OLDNEW
« no previous file with comments | « src/platform/vboot_reference/include/utility.h ('k') | src/platform/vboot_reference/utils/Makefile » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698