Files
OpenCellular/host/Makefile
Che-Liang Chiou 89678602e6 Fix integration bugs (vboot side)
BUG=chromium-os:8621
TEST=See below

1. Build and run tests of vboot (including linktest)
$ make && make runtests

2. Check if *_stub.o are not in vboot_fw.a
$ nm /build/<board>/usr/lib/vboot_fw.a | grep _stub.o

3. Build and boot x86-generic image
$ ./build_packages --board=x86-generic && ./build_image --board=x86-generic
(Then successfully boot the image you just built)

See CL=4372001 for u-boot side changes

Review URL: http://codereview.chromium.org/4266002

Change-Id: Icc2bcc551c998f370e4b737fbe442ebf029cd81c
2010-11-09 08:33:36 +08:00

44 lines
1.1 KiB
Makefile

# 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.
HOSTTOP := $(shell pwd)
TESTDIR = $(HOSTTOP)/linktest
BUILD_ROOT := ${BUILD}/$(shell basename ${HOSTTOP})
INCLUDES += \
-I$(HOSTTOP)/include \
-I$(FWDIR)/lib/include \
-I$(FWDIR)/lib/cgptlib/include \
-I$(FWDIR)/lib/cryptolib/include
# find ./lib -iname '*.c' | sort
LIB_SRCS = \
./lib/file_keys.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