OLD | NEW |
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 » » -I../cryptolib/include \ |
9 | 9 » » -I../common/include \ |
10 BASE_LIBS = $(TOP)/crypto/libcrypto.a $(TOP)/common/libcommon.a | 10 » » -I../misclibs/include \ |
11 IMAGE_LIBS = $(TOP)/utils/firmware_image.o \ | 11 » » -I../vfirmware/include\ |
12 » » $(TOP)/utils/firmware_image_fw.o \ | 12 » » -I../vkernel/include |
13 » » $(TOP)/utils/kernel_image.o \ | 13 BASE_LIBS = $(TOP)/cryptolib/libcrypto.a $(TOP)/common/libcommon.a |
14 » » $(TOP)/utils/kernel_image_fw.o | 14 IMAGE_LIBS = $(TOP)/vfirmware/firmware_image.o \ |
15 UTIL_LIBS = $(TOP)/utils/file_keys.o $(TOP)/utils/signature_digest.o | 15 » » $(TOP)/vfirmware/firmware_image_fw.o \ |
| 16 » » $(TOP)/vkernel/kernel_image.o \ |
| 17 » » $(TOP)/vkernel/kernel_image_fw.o |
| 18 UTIL_LIBS = $(TOP)/misclibs/file_keys.o $(TOP)/misclibs/signature_digest.o |
16 LIBS = $(IMAGE_LIBS) $(UTIL_LIBS) -lcrypto $(BASE_LIBS) | 19 LIBS = $(IMAGE_LIBS) $(UTIL_LIBS) -lcrypto $(BASE_LIBS) |
17 | 20 |
18 TEST_BINS = big_firmware_tests \ | 21 TEST_BINS = big_firmware_tests \ |
19 big_kernel_tests \ | 22 big_kernel_tests \ |
20 firmware_image_tests \ | 23 firmware_image_tests \ |
21 firmware_rollback_tests \ | 24 firmware_rollback_tests \ |
22 firmware_splicing_tests \ | 25 firmware_splicing_tests \ |
23 firmware_verify_benchmark \ | 26 firmware_verify_benchmark \ |
24 kernel_image_tests \ | 27 kernel_image_tests \ |
25 kernel_rollback_tests \ | 28 kernel_rollback_tests \ |
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
86 | 89 |
87 verify_firmware_fuzz_driver: verify_firmware_fuzz_driver.c \ | 90 verify_firmware_fuzz_driver: verify_firmware_fuzz_driver.c \ |
88 rollback_index_mock.c | 91 rollback_index_mock.c |
89 $(CC) $(CFLAGS) $(INCLUDES) $^ -o $@ $(LIBS) | 92 $(CC) $(CFLAGS) $(INCLUDES) $^ -o $@ $(LIBS) |
90 | 93 |
91 verify_kernel_fuzz_driver: verify_kernel_fuzz_driver.c rollback_index_mock.c | 94 verify_kernel_fuzz_driver: verify_kernel_fuzz_driver.c rollback_index_mock.c |
92 $(CC) $(CFLAGS) $(INCLUDES) $^ -o $@ $(LIBS) | 95 $(CC) $(CFLAGS) $(INCLUDES) $^ -o $@ $(LIBS) |
93 | 96 |
94 clean: | 97 clean: |
95 rm -f $(TEST_BINS) | 98 rm -f $(TEST_BINS) |
OLD | NEW |