summaryrefslogtreecommitdiff
path: root/cgpt/Makefile
diff options
context:
space:
mode:
authorJay Srinivasan <jaysri@chromium.org>2012-02-23 10:59:01 -0800
committerGerrit <chrome-bot@google.com>2012-02-23 15:10:38 -0800
commit5fac757abef456bf66d9dd96b316ec61fe04b48e (patch)
tree2b1871edc450cc37ff67974aeb122ec36bd7089b /cgpt/Makefile
parenta5e1519b5ef6c9ff9508f18bc66735524bff2d42 (diff)
downloadvboot-5fac757abef456bf66d9dd96b316ec61fe04b48e.tar.gz
Enable building of Cgpt C++ Library for 32-bit.
The existing library had a bunch of dependencies which are too many to build for the 32-bit platform. So this checkin prunes the dependency list by building only things that are absolutely required for the functionality used in 32-bit Post-Installer. Made the use of libuuid restricted only to cgpt and unit tests so that libcgpt-cc.a doesn't depend on it. BUG=chromium-os:25374 TEST=Built 32-bit and 64-bit. Tested 32-bit post-install. Change-Id: Idd0826fdf507a95728fee8adac9520e26f05d469 Reviewed-on: https://gerrit.chromium.org/gerrit/16433 Reviewed-by: Don Garrett <dgarrett@chromium.org> Reviewed-by: Sonny Rao <sonnyrao@chromium.org> Commit-Ready: Jay Srinivasan <jaysri@chromium.org> Tested-by: Jay Srinivasan <jaysri@chromium.org>
Diffstat (limited to 'cgpt/Makefile')
-rw-r--r--cgpt/Makefile18
1 files changed, 14 insertions, 4 deletions
diff --git a/cgpt/Makefile b/cgpt/Makefile
index d3ca978e..dc345215 100644
--- a/cgpt/Makefile
+++ b/cgpt/Makefile
@@ -33,18 +33,28 @@ ALL_SRCS = \
cgpt_common.c
LIB_CGPT_CC_SRCS = \
- CgptManager.cc
+ CgptManager.cc \
+ cgpt_create.c \
+ cgpt_add.c \
+ cgpt_boot.c \
+ cgpt_show.c \
+ cgpt_repair.c \
+ cgpt_prioritize.c \
+ cgpt_common.c \
+ ../firmware/lib/cgptlib/crc32.c \
+ ../firmware/lib/cgptlib/cgptlib_internal.c \
+ ../firmware/stub/utility_stub.c
main: $(PROGNAME)
include ../common.mk
-LIB_CGPT_CC_OBJS = $(LIB_CGPT_CC_SRCS:%.cc=${BUILD_ROOT}/%.o)
+LIB_CGPT_CC_OBJS = $(LIB_CGPT_CC_SRCS:%.c=${BUILD_ROOT}/%.o) $(LIB_CGPT_CC_SRCS:%.cc=${BUILD_ROOT}/%.o)
LIB_CGPT_CC_DEPS = $(LIB_CGPT_CC_OBJS:%.o=%.o.d)
-libcgpt_cc: main $(LIB_CGPT_CC)
+libcgpt_cc: $(LIB_CGPT_CC)
-$(LIB_CGPT_CC): $(ALL_OBJS) $(LIB_CGPT_CC_OBJS)
+$(LIB_CGPT_CC): $(LIB_CGPT_CC_OBJS)
rm -f $@
ar qc $@ $^