mirror of
https://github.com/Telecominfraproject/OpenCellular.git
synced 2026-01-15 08:57:42 +00:00
This should be ready for the ARM team to pick up and work on. I added a placeholder ARM implementation file, though it's not hooked up in the Makefile yet. As soon as you implement the VbNvStorage APIs, all the related crossystem commands will start working. Ditto for VbSharedData. The params which x86 gets from ACPI you'll need to get from u-boot somehow, probably via your own kernel driver. R=robotboy@chromium.org BUG=chromium-os:12522 TEST=emerge-x86-alex vboot_reference, make sure it still works on x86 Review URL: http://codereview.chromium.org/6780008 Change-Id: I628ee56508421b937ed50db7cb9b8385408d2f5e
48 lines
1.2 KiB
Makefile
48 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/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) -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
|