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

Side by Side Diff: host/Makefile

Issue 6780008: Refactor crossystem to move x86-specific implementation to its own file. (Closed) Base URL: ssh://gitrw.chromium.org:9222/vboot_reference.git@master
Patch Set: post-pull Created 9 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | host/arch/arm/lib/crossystem_arch.c » ('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) 2011 The Chromium OS Authors. All rights reserved. 1 # Copyright (c) 2011 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 HOSTTOP := $(shell pwd) 5 HOSTTOP := $(shell pwd)
6 TESTDIR = $(HOSTTOP)/linktest 6 TESTDIR = $(HOSTTOP)/linktest
7 BUILD_ROOT := ${BUILD}/$(shell basename ${HOSTTOP}) 7 BUILD_ROOT := ${BUILD}/$(shell basename ${HOSTTOP})
8 8
9 INCLUDES += \ 9 INCLUDES += \
10 -I$(HOSTTOP)/include \ 10 -I$(HOSTTOP)/include \
11 -I$(HOSTTOP)/arch/$(ARCH)/include \
11 -I$(FWDIR)/lib/include \ 12 -I$(FWDIR)/lib/include \
12 -I$(FWDIR)/lib/cgptlib/include \ 13 -I$(FWDIR)/lib/cgptlib/include \
13 -I$(FWDIR)/lib/cryptolib/include 14 -I$(FWDIR)/lib/cryptolib/include
14 15
15 # find ./lib -iname '*.c' | sort 16 # find ./lib -iname '*.c' | sort
16 LIB_SRCS = \ 17 LIB_SRCS = \
18 ./arch/$(ARCH)/lib/crossystem_arch.c \
17 ./lib/crossystem.c \ 19 ./lib/crossystem.c \
18 ./lib/file_keys.c \ 20 ./lib/file_keys.c \
19 ./lib/fmap.c \ 21 ./lib/fmap.c \
20 ./lib/host_common.c \ 22 ./lib/host_common.c \
21 ./lib/host_key.c \ 23 ./lib/host_key.c \
22 ./lib/host_keyblock.c \ 24 ./lib/host_keyblock.c \
23 ./lib/host_misc.c \ 25 ./lib/host_misc.c \
24 ./lib/host_signature.c \ 26 ./lib/host_signature.c \
25 ./lib/signature_digest.c 27 ./lib/signature_digest.c
26 28
27 STUB_SRCS = \ 29 STUB_SRCS = \
28 ../firmware/stub/boot_device_stub.c \ 30 ../firmware/stub/boot_device_stub.c \
29 ../firmware/stub/load_firmware_stub.c \ 31 ../firmware/stub/load_firmware_stub.c \
30 ../firmware/stub/tpm_lite_stub.c \ 32 ../firmware/stub/tpm_lite_stub.c \
31 ../firmware/stub/utility_stub.c 33 ../firmware/stub/utility_stub.c
32 34
33 ALL_SRCS = ${LIB_SRCS} ${STUB_SRCS} 35 ALL_SRCS = ${LIB_SRCS} ${STUB_SRCS}
34 36
35 test : $(HOSTLIB) 37 test : $(HOSTLIB)
36 $(CC) $(CFLAGS) $(INCLUDES) -o $(BUILD_ROOT)/a.out $(TESTDIR)/main.c \ 38 $(CC) $(CFLAGS) $(INCLUDES) -o $(BUILD_ROOT)/a.out $(TESTDIR)/main.c \
37 $(HOSTLIB) -lcrypto 39 $(HOSTLIB) -lcrypto
38 40
39 include ../common.mk 41 include ../common.mk
40 42
41 $(HOSTLIB) : $(ALL_OBJS) $(FWLIB) 43 $(HOSTLIB) : $(ALL_OBJS) $(FWLIB)
42 rm -rf $@ $(BUILD_ROOT)/.tmp 44 rm -rf $@ $(BUILD_ROOT)/.tmp
43 mkdir -p $(BUILD_ROOT)/.tmp 45 mkdir -p $(BUILD_ROOT)/.tmp
44 cd $(BUILD_ROOT)/.tmp ; ar x $(FWLIB) 46 cd $(BUILD_ROOT)/.tmp ; ar x $(FWLIB)
45 ar qc $@ $^ $(BUILD_ROOT)/.tmp/*.o 47 ar qc $@ $^ $(BUILD_ROOT)/.tmp/*.o
OLDNEW
« no previous file with comments | « no previous file | host/arch/arm/lib/crossystem_arch.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698