diff options
author | Randall Spangler <rspangler@chromium.org> | 2013-01-08 10:44:23 -0800 |
---|---|---|
committer | ChromeBot <chrome-bot@google.com> | 2013-01-11 14:20:53 -0800 |
commit | 5d9bbf2bbd7b8dfad45d8ddfea6512987736e523 (patch) | |
tree | 6d720ac3bcd24aa618a08f7703012499eb27bdff /host | |
parent | ee327511af9ce0812eaadd56fc3e0e6fbdbc407f (diff) | |
download | vboot-5d9bbf2bbd7b8dfad45d8ddfea6512987736e523.tar.gz |
Unify vboot build into a single makefile
This is a necessary precursor to getting coverage working.
BUG=chromium-os:26317
BRANCH=none
TEST=manual
sudo emerge vboot_reference
emerge-link vboot_reference chromeos-u-boot
emerge-daisy vboot_reference chromeos-u-boot
Change-Id: Ibed91c64a5ca5fa486169d64fb01a9e868ce27e5
Signed-off-by: Randall Spangler <rspangler@chromium.org>
(cherry picked from commit 13ed1f4812f810ee0a47b946ad990f1fa93f366c)
Reviewed-on: https://gerrit.chromium.org/gerrit/40906
Reviewed-by: Bill Richardson <wfrichar@chromium.org>
Diffstat (limited to 'host')
-rw-r--r-- | host/Makefile | 46 |
1 files changed, 0 insertions, 46 deletions
diff --git a/host/Makefile b/host/Makefile deleted file mode 100644 index c4b24d0b..00000000 --- a/host/Makefile +++ /dev/null @@ -1,46 +0,0 @@ -# Copyright (c) 2011 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. - -HOSTTOP := $(shell pwd) -TESTDIR = $(HOSTTOP)/linktest -BUILD_ROOT := ${BUILD}/$(shell basename ${HOSTTOP}) - -INCLUDES += \ - -I$(HOSTTOP)/include \ - -I$(HOSTTOP)/arch/$(ARCH)/include \ - -I$(FWDIR)/lib/include \ - -I$(FWDIR)/lib/cgptlib/include \ - -I$(FWDIR)/lib/cryptolib/include - -# find ./lib -iname '*.c' | sort -LIB_SRCS = \ - ./arch/$(ARCH)/lib/crossystem_arch.c \ - ./lib/crossystem.c \ - ./lib/file_keys.c \ - ./lib/fmap.c \ - ./lib/host_common.c \ - ./lib/host_key.c \ - ./lib/host_keyblock.c \ - ./lib/host_misc.c \ - ./lib/host_signature.c \ - ./lib/signature_digest.c - -STUB_SRCS = \ - ../firmware/stub/tpm_lite_stub.c \ - ../firmware/stub/utility_stub.c \ - ../firmware/stub/vboot_api_stub.c - -ALL_SRCS = ${LIB_SRCS} ${STUB_SRCS} - -test : $(HOSTLIB) - $(CC) $(CFLAGS) $(INCLUDES) -o $(BUILD_ROOT)/a.out $(TESTDIR)/main.c \ - $(HOSTLIB) -lcrypto - -include ../build.mk - -$(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 |