Files
OpenCellular/host/Makefile
Randall Spangler 1b1998dff0 Vboot wrapper initial implementation
Patch 1: Initial change
Patch 2: Fix comment in vboot_struct.h
Patch 3: Revert files unintentionally reverted
Patch 4: (rebase)
Patch 5: (rebase)
Patch 6: Revert files unintentionally reverted (again)
Patch 7: Fix mocked tlcl for ARM build

BUG=chromium-os:17010
TEST=make && make runtests; works on H2C; emerge-tegra2_seaboard chromeos-bootimage compiles

Change-Id: I6e5ce72d41b9297c07a3f330a881eba68cfabee2
Reviewed-on: http://gerrit.chromium.org/gerrit/3593
Reviewed-by: Randall Spangler <rspangler@chromium.org>
Tested-by: Randall Spangler <rspangler@chromium.org>
2011-07-08 13:31:36 -07:00

47 lines
1.2 KiB
Makefile

# 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 ../common.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