Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add root_dir option to reltool.config #145

Closed
wants to merge 1 commit into from

Conversation

smithwinston
Copy link
Contributor

When generating a node using rebar generate, rebar always used code:root_dir() to find the Erlang installation to clone into the node tree. However, for anyone wishing to build a cross-compiled node, there was no way to override this. This patch adds a new option to reltool.config file to allow an alternate root_dir to be specified, for example:

{root_dir, "/tmp/otp_R14B03_armv7l"}

This assumes that the contents of /tmp/otp_R14B03_armv7l has been generated using the instructions found in the xcomp directory in your $ERL_TOP structure. NOTE: you may have to add additional filters to exclude files not present in the xcomp version, such as the .smp files if you have disabled that.

When generating a node using rebar generate, rebar always used code:root_dir() to find the Erlang installation to clone into the node tree.  However, for anyone wishing to build a cross-compiled node, there was no way to override this.  This patch adds a new option to reltool.config file to allow an alternate root_dir to be specified, for example:

{root_dir, "/tmp/otp_R14B03_armv7l"}

This assumes that the contents of /tmp/otp_R14B03_armv7l has been generated using the instructions found in the xcomp directory in your $ERL_TOP structure.  NOTE: you may have to add additional filters to exclude files not present in the xcomp version, such as the .smp files if you have disabled that.
@ghost
Copy link

ghost commented Nov 26, 2011

Thanks, merged and refactored reltool root_dir lookup.

@ghost ghost closed this Nov 26, 2011
jaredmorrow pushed a commit that referenced this pull request Nov 5, 2013
CONTRIBUTING: apply stylistic change suggested by dizzyd
This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant