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>
diff --git a/Makefile b/Makefile
index 9b4e162..78840b7 100644
--- a/Makefile
+++ b/Makefile
@@ -105,9 +105,17 @@
make -C $$i; \
done
-libcgpt_cc: all
+libcgpt_cc:
+ mkdir -p ${BUILD}/cgpt ${BUILD}/firmware/lib/cgptlib ${BUILD}/firmware/stub
$(MAKE) -C cgpt libcgpt_cc
- $(MAKE) -C tests CgptManagerTests
+
+cgptmanager_tests: libcgpt_cc
+ mkdir -p ${BUILD}/tests
+ $(MAKE) -C tests cgptmanager_tests
+
+libdump_kernel_config:
+ mkdir -p ${BUILD}/utility
+ $(MAKE) -C utility $(DUMPKERNELCONFIGLIB)
clean:
/bin/rm -rf ${BUILD}