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

Unified Diff: autotest/hardware_TPMFirmware/src/Makefile

Issue 3335010: vboot_reference: add hardware_TPMFirmware test case into vboot_reference repo (Closed) Base URL: ssh://git@gitrw.chromium.org:9222/vboot_reference.git
Patch Set: Created 10 years, 3 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « autotest/hardware_TPMFirmware/hardware_TPMFirmware.py ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: autotest/hardware_TPMFirmware/src/Makefile
diff --git a/autotest/hardware_TPMFirmware/src/Makefile b/autotest/hardware_TPMFirmware/src/Makefile
new file mode 100644
index 0000000000000000000000000000000000000000..d864f40deb65df09bb1d05f70765cda2b06c814c
--- /dev/null
+++ b/autotest/hardware_TPMFirmware/src/Makefile
@@ -0,0 +1,35 @@
+# Copyright (c) 2010 The Chromium OS Authors. All rights reserved.
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
+
+TPM = tpm
+TPM_SRC_DIR = $(GCLIENT_ROOT)/src/third_party/$(TPM)
+TPM_WORK_DIR = $(TPM)
+
+TLCL = tpm_lite
+TLCL_SRC_DIR = $(GCLIENT_ROOT)/src/platform/$(TLCL)
+TLCL_WORK_DIR = $(TLCL)
+
+BINDIR = .
+PROGRAMS = \
+ clear \
+ enable \
+ globallock \
+ lock \
+ readonly \
+ writelimit
+
+all:
+ rm -rf $(TPM_WORK_DIR)
+ cp -a $(TPM_SRC_DIR) $(TPM_WORK_DIR)
+ $(MAKE) -C $(TPM_WORK_DIR)/nvtool clean
+ $(MAKE) -C $(TPM_WORK_DIR)/nvtool
+ rm -rf $(TLCL_WORK_DIR)
+ cp -a $(TLCL_SRC_DIR) $(TLCL_WORK_DIR)
+ $(MAKE) -C $(TLCL_WORK_DIR)/src clean
+ $(MAKE) cross USE_TPM_EMULATOR=0 -C $(TLCL_WORK_DIR)/src
+ # gets rid of host binary which confuses ARM build
+ rm $(TLCL_WORK_DIR)/src/tlcl/generator
+ cp $(TPM_WORK_DIR)/nvtool/tpm-nvtool $(BINDIR)
+ set -e; for i in $(PROGRAMS); \
+ do cp $(TLCL_WORK_DIR)/src/testsuite/tpmtest_$$i $(BINDIR); done
« no previous file with comments | « autotest/hardware_TPMFirmware/hardware_TPMFirmware.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698