summaryrefslogtreecommitdiff
path: root/cgpt/cgpt.c
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/cgpt.c
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/cgpt.c')
-rw-r--r--cgpt/cgpt.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/cgpt/cgpt.c b/cgpt/cgpt.c
index 4c9fc328..e963142a 100644
--- a/cgpt/cgpt.c
+++ b/cgpt/cgpt.c
@@ -11,10 +11,11 @@
#include <stdio.h>
#include <string.h>
#include <unistd.h>
-
+#include <uuid/uuid.h>
const char* progname;
const char* command;
+void (*uuid_generator)(uint8_t* buffer);
struct {
const char *name;
@@ -51,6 +52,8 @@ int main(int argc, char *argv[]) {
int match_count = 0;
int match_index = 0;
+ uuid_generator = uuid_generate;
+
progname = strrchr(argv[0], '/');
if (progname)
progname++;