Skip to content

Commit

Permalink
Moved cross-compilation config into master branch
Browse files Browse the repository at this point in the history
  • Loading branch information
alexeyr committed Nov 18, 2010
1 parent 71866dc commit fca4596
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Makefile
Expand Up @@ -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
13 changes: 13 additions & 0 deletions rebar.cross_compile.config.sample
@@ -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"}]}.

0 comments on commit fca4596

Please sign in to comment.