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

Side by Side Diff: tests/Makefile

Issue 4266002: Fix integration bugs (vboot side) (Closed) Base URL: ssh://git@gitrw.chromium.org:9222/vboot_reference.git@master
Patch Set: Rename tpm_lite.h to tlcl_stub.h Created 10 years, 1 month 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 | Annotate | Revision Log
« no previous file with comments | « host/Makefile ('k') | tests/tpm_lite/Makefile » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 INCLUDES += -I./include \ 5 INCLUDES += -I./include \
6 -I$(FWDIR)/lib/include \ 6 -I$(FWDIR)/lib/include \
7 -I$(FWDIR)/lib/cgptlib/include \ 7 -I$(FWDIR)/lib/cgptlib/include \
8 -I$(FWDIR)/lib/cryptolib/include \ 8 -I$(FWDIR)/lib/cryptolib/include \
9 -I$(FWDIR)/lib/tpm_lite/include \ 9 -I$(FWDIR)/lib/tpm_lite/include \
10 -I$(HOSTDIR)/include 10 -I$(HOSTDIR)/include
11 BUILD_ROOT = ${BUILD}/tests 11 BUILD_ROOT = ${BUILD}/tests
12 12
13 TEST_NAMES = cgptlib_test \ 13 TEST_NAMES = cgptlib_test \
14 rsa_padding_test \ 14 rsa_padding_test \
15 rsa_verify_benchmark \ 15 rsa_verify_benchmark \
16 sha_benchmark \ 16 sha_benchmark \
17 sha_tests \ 17 sha_tests \
18 vboot_common_tests \ 18 vboot_common_tests \
19 vboot_common2_tests \ 19 vboot_common2_tests \
20 vboot_common3_tests \ 20 vboot_common3_tests \
21 21
22 TEST_BINS = $(addprefix ${BUILD_ROOT}/,$(TEST_NAMES)) 22 TEST_BINS = $(addprefix ${BUILD_ROOT}/,$(TEST_NAMES))
23 23
24 TEST_LIB = ${BUILD_ROOT}/test.a 24 TEST_LIB = ${BUILD_ROOT}/test.a
25 TEST_LIB_SRCS = test_common.c timer_utils.c crc32_test.c 25 TEST_LIB_SRCS = test_common.c timer_utils.c crc32_test.c
26 TEST_LIB_OBJS = $(TEST_LIB_SRCS:%.c=${BUILD_ROOT}/%.o) 26 TEST_LIB_OBJS = $(TEST_LIB_SRCS:%.c=${BUILD_ROOT}/%.o)
27 ALL_DEPS = $(addsuffix .d,${TEST_BINS} ${TEST_LIB_OBJS}) 27 ALL_DEPS = $(addsuffix .d,${TEST_BINS} ${TEST_LIB_OBJS})
28 CFLAGS += -MMD -MF $@.d 28 CFLAGS += -MMD -MF $@.d
29 29
30 LIBS := ${TEST_LIB} $(HOSTLIB) $(FWLIB) 30 LIBS := ${TEST_LIB} $(HOSTLIB)
31 31
32 ifneq (${RUNTESTS},) 32 ifneq (${RUNTESTS},)
33 EXTRA_TARGET = runtests 33 EXTRA_TARGET = runtests
34 endif 34 endif
35 35
36 all: $(TEST_BINS) ${EXTRA_TARGET} 36 all: $(TEST_BINS) ${EXTRA_TARGET}
37 37
38 rbtest: $(BUILD_ROOT)/rollback_index_test 38 rbtest: $(BUILD_ROOT)/rollback_index_test
39 39
40 ${TEST_LIB}: ${TEST_LIB_OBJS} 40 ${TEST_LIB}: ${TEST_LIB_OBJS}
41 rm -f $@ 41 rm -f $@
42 ar qc $@ $^ 42 ar qc $@ $^
43 43
44 ${BUILD_ROOT}/rollback_index_test.o : rollback_index_test.c 44 ${BUILD_ROOT}/rollback_index_test.o : rollback_index_test.c
45 $(CC) $(CFLAGS) -I/usr/include $(INCLUDES) -MMD -MF $@.d -c -o $@ $< 45 $(CC) $(CFLAGS) -I/usr/include $(INCLUDES) -MMD -MF $@.d -c -o $@ $<
46 46
47 ${BUILD_ROOT}/rollback_index_test: rollback_index_test.c ${HOSTLIB} ${FWLIB} 47 ${BUILD_ROOT}/rollback_index_test: rollback_index_test.c ${HOSTLIB}
48 $(CC) $(CFLAGS) -I/usr/include $(INCLUDES) $< -o $@ \ 48 $(CC) $(CFLAGS) -I/usr/include $(INCLUDES) $< -o $@ \
49 -ltlcl ${HOSTLIB} ${FWLIB} -lcrypto -lrt 49 -ltlcl ${HOSTLIB} -lcrypto -lrt
50 50
51 ${BUILD_ROOT}/%.o : %.c 51 ${BUILD_ROOT}/%.o : %.c
52 $(CC) $(CFLAGS) $(INCLUDES) -MMD -MF $@.d -c -o $@ $< 52 $(CC) $(CFLAGS) $(INCLUDES) -MMD -MF $@.d -c -o $@ $<
53 53
54 ${BUILD_ROOT}/%: %.c ${LIBS} 54 ${BUILD_ROOT}/%: %.c ${LIBS}
55 $(CC) $(CFLAGS) $(INCLUDES) $< ${LIBS} -o $@ -lcrypto -lrt 55 $(CC) $(CFLAGS) $(INCLUDES) $< ${LIBS} -o $@ -lcrypto -lrt
56 56
57 # TODO: port these tests to new API, if not already eqivalent 57 # TODO: port these tests to new API, if not already eqivalent
58 # functionality in other tests 58 # functionality in other tests
59 # 59 #
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
100 # ${BUILD_ROOT}/kernel_splicing_tests 100 # ${BUILD_ROOT}/kernel_splicing_tests
101 # # Rollback Tests 101 # # Rollback Tests
102 # ${BUILD_ROOT}/firmware_rollback_tests 102 # ${BUILD_ROOT}/firmware_rollback_tests
103 # ${BUILD_ROOT}/kernel_rollback_tests 103 # ${BUILD_ROOT}/kernel_rollback_tests
104 104
105 install-rbtest: $(BUILD_ROOT)/rollback_index_test 105 install-rbtest: $(BUILD_ROOT)/rollback_index_test
106 mkdir -p $(DESTDIR) 106 mkdir -p $(DESTDIR)
107 cp -f $(BUILD_ROOT)/rollback_index_test $(DESTDIR) 107 cp -f $(BUILD_ROOT)/rollback_index_test $(DESTDIR)
108 108
109 -include ${ALL_DEPS} 109 -include ${ALL_DEPS}
OLDNEW
« no previous file with comments | « host/Makefile ('k') | tests/tpm_lite/Makefile » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698