add integrated cross-compile & qemu support
This uses the existing CrOS toolchains & boards to cross-compile for arm
and mipsel boards. It also includes qemu support for running tests.
BUG=b/26741388
TEST=`make cross-arm all-libs` downloads & builds w/arm
Change-Id: Ie974b1c3c2b61759e87f87bab535068a1c31a727
Reviewed-on: https://weave-review.googlesource.com/3000
Reviewed-by: Alex Vakulenko <avakulenko@google.com>
diff --git a/Makefile b/Makefile
index 00f237c..8cbb0e7 100644
--- a/Makefile
+++ b/Makefile
@@ -77,7 +77,7 @@
out/$(BUILD_MODE)/libweave.so : out/$(BUILD_MODE)/libweave_common.a
$(CXX) -shared -Wl,-soname=libweave.so -o $@ -Wl,--whole-archive $^ -Wl,--no-whole-archive -lcrypto -lexpat -lpthread -lrt
-include file_lists.mk third_party/third_party.mk examples/examples.mk tests.mk
+include cross.mk file_lists.mk third_party/third_party.mk examples/examples.mk tests.mk
###
# src/