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

Unified Diff: host/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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « firmware/lib/tpm_lite/include/tlcl.h ('k') | tests/Makefile » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: host/Makefile
diff --git a/host/Makefile b/host/Makefile
index 29b8231ca6f0e5d81f5ae297057c392df4adc92d..763eb3783723040dc9f8bcf9d9cccf34e8e66750 100644
--- a/host/Makefile
+++ b/host/Makefile
@@ -13,7 +13,7 @@ INCLUDES += \
-I$(FWDIR)/lib/cryptolib/include
# find ./lib -iname '*.c' | sort
-ALL_SRCS = \
+LIB_SRCS = \
./lib/file_keys.c \
./lib/host_common.c \
./lib/host_key.c \
@@ -22,12 +22,22 @@ ALL_SRCS = \
./lib/host_signature.c \
./lib/signature_digest.c
+STUB_SRCS = \
+ ../firmware/stub/boot_device_stub.c \
+ ../firmware/stub/load_firmware_stub.c \
+ ../firmware/stub/tpm_lite_stub.c \
+ ../firmware/stub/utility_stub.c
+
+ALL_SRCS = ${LIB_SRCS} ${STUB_SRCS}
+
test : $(HOSTLIB)
$(CC) $(CFLAGS) $(INCLUDES) -o $(BUILD_ROOT)/a.out $(TESTDIR)/main.c \
- $(HOSTLIB) $(FWLIB) -lcrypto
+ $(HOSTLIB) -lcrypto
include ../common.mk
-$(HOSTLIB) : $(ALL_OBJS)
- rm -f $@
- ar qc $@ $^
+$(HOSTLIB) : $(ALL_OBJS) $(FWLIB)
+ rm -rf $@ $(BUILD_ROOT)/.tmp
+ mkdir -p $(BUILD_ROOT)/.tmp
+ cd $(BUILD_ROOT)/.tmp ; ar x $(FWLIB)
+ ar qc $@ $^ $(BUILD_ROOT)/.tmp/*.o
« no previous file with comments | « firmware/lib/tpm_lite/include/tlcl.h ('k') | tests/Makefile » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698