Moved cross-compilation config into master branch

This commit is contained in:
Alexey Romanov
2010-11-18 13:16:52 +03:00
parent 71866dcc05
commit fca4596295
2 changed files with 16 additions and 0 deletions

View File

@@ -24,4 +24,7 @@ else
dialyzer --plt $(PLT) -r ebin
endif
cross_compile: clean
$(REBAR_COMPILE) -C rebar.cross_compile.config
.PHONY: all compile test clean docs static

View File

@@ -0,0 +1,13 @@
% -*- mode: erlang -*-
{port_envs, [{"HOST", "arm-none-linux-gnueabi"},
{"CROSS_COMPILE_ROOT", "/home/aromanov"},
{"SQLITE_CROSS_COMPILED", "$CROSS_COMPILE_ROOT/sqlite-arm"},
{"CROSS_COMPILE_TOOLCHAIN", "$CROSS_COMPILE_ROOT/sbctools/arm-2007q3"},
{"OTPROOT_CROSS_COMPILED", "$CROSS_COMPILE_ROOT/otp_arm_compiled"},
{"ERL_INTERFACE_VERSION", "3.7.1"},
{"ERL_INTERFACE_LIB", "$OTPROOT_CROSS_COMPILED/lib/erl_interface-$ERL_INTERFACE_VERSION/lib"},
{"CC", "$CROSS_COMPILE_TOOLCHAIN/bin/$HOST-gcc"},
{"LD", "$CROSS_COMPILE_TOOLCHAIN/bin/$HOST-ld"},
{"ERL_LDFLAGS", " -L$ERL_INTERFACE_LIB -lerl_interface -lei"},
{"DRV_LDFLAGS", "$DRV_LDFLAGS -L$SQLITE_CROSS_COMPILED/usr/local/lib -lsqlite3"},
{"DRV_CFLAGS", "$DRV_CFLAGS -I$SQLITE_CROSS_COMPILED/usr/local/include"}]}.