diff options
author | Magnus <mfeuer@jaguarlandrover.com> | 2014-08-15 09:29:07 -0700 |
---|---|---|
committer | Magnus <mfeuer@jaguarlandrover.com> | 2014-08-15 09:29:07 -0700 |
commit | fc66fb9eae7f3a880a6ab59bbeaea8011bf99588 (patch) | |
tree | a3f064309f870d570779917a9dd1ce0666a43a2d | |
parent | efad1f07a6589170a5e8e262c46b3dfced0580ab (diff) | |
download | rvi_core-fc66fb9eae7f3a880a6ab59bbeaea8011bf99588.tar.gz |
Completed build documentation. Commented out unused target in Makefile
Signed-off-by: Magnus <mfeuer@jaguarlandrover.com>
-rw-r--r-- | BUILD.md | 105 | ||||
-rw-r--r-- | Makefile | 25 |
2 files changed, 106 insertions, 24 deletions
@@ -4,18 +4,101 @@ This document is licensed under Creative Commons Attribution-ShareAlike 4.0 International. # BUILD INSTRUCTIONS FOR RVI # -This document -Prereq -Ubuntu 14.04 with latest updates. -sudo apt-get git -sudo apt-get install erlang (R16B01) +This document describes the build process for the RVI project on an +Ubuntu 14.01 Linux machine. -# -# HVAC DEMO +Please see ```README.md``` for a general description of the project +and its structure. -git clone https://gerrit.automotivelinux.org/gerrit/RVI/rvi -cd rvi +Please see ```CONFIGURE.md``` for details on cofniguring and launching +the system once it has been built. -make -(rebar) +The first milestone of the RVI project is the HVAC demo. Please see +```hvac_demo/README.md``` for details on how to setup, launch and +drive the demo. + +# READER ASSUMPTIONS # +In order to build the system, the reader is assumed to be able to: + +1. Have a basic understanding of Linux system operations. +2. Install packages on the system. + +Please note that the configuraiton process, described in +```CONFIGURE.md``` may have additional skill requirements. + +# PREREQUISITES # + +1. The Ubuntu 14.01 system have the latest updates installed. +2. The user can gain root access to install packages. +3. There is at least 5GB of space availabled for packages and code. + +# INSTALLATION PROCESS # + +## INSTALL GIT ## + +Use ```apt-get``` to install git, which is used to access the Automotive +Grade Linux repositories where the code resides: + + sudo apt-get git + +## INSTALL ERLANG ## + +Install Erlang R16B01, or a later R16 release: + + sudo apt-get install erlang + + +## CLONE THE RVI REPOSITORY ## + +Use the newly installed ```git``` tool to clone (copy) the RVI repository +to the build system. + + git clone https://gerrit.automotivelinux.org/gerrit/RVI/rvi + +The clone will be downloaded into a newly created ```rvi``` subdirectory. + + +## RETRIEVE ADDITIONAL CODE DEPENDENCIES ## + +Move into the newly created ```rvi``` directory where the code resides. + + cd rvi + +Run ```make``` to pull all necessary repositories into the ```deps``` +subdirectory under the ```rvi``` directory: + + make deps + +The local ```rebar``` command is used to retrieve the code. See +```rebar.config``` and ```deps/*/rebar.config``` for a list of +dependencies. + +See the [rebar](https://github.com/basho/rebar) project for a detailed +description of the rebar Erlang build tool. + + +## BUILD THE RVI SYSTEM ## + +Run ```make``` to build the dependency code in ```deps``` and the +top level project in the ```rvi``` directory. + + make compile + +The following warnings are expected, and are not a failure indication: + + .../exo_ssh.erl:18: Warning: undefined callback function code_change/3 (behaviour 'ssh_channel') + ... + .../bert_challenge.erl:223: Warning: crypto:sha/1 is deprecated and will be removed in in a future release; use crypto:hash/2 + ... + .../bert_challenge.erl:230: Warning: crypto:sha/1 is deprecated and will be removed in in a future release; use crypto:hash/2 + ... + .../authorize_rpc.erl:31: Warning: function get_certificate_body/2 is unused + +The compiled code is available under ```ebin/``` and ```deps/*/ebin```. + + +## CREATE A RELEASE ## + +See ```CONFIGURE.md``` for details on configuring and creating a +developer and production release that can be launched. @@ -23,19 +23,18 @@ recomp: ./rebar compile skip_deps=true -target_backend: - ERL_LIBS=$(PWD)/deps:$(ERL_LIBS) \ - $(SETUP_GEN) $(NAME) priv/backend.config setup -pz $(PWD)/ebin \ - -target rel_backend -vsn 0.1 - -target_device: - ERL_LIBS=$(PWD)/deps:$(ERL_LIBS) \ - $(SETUP_GEN) $(NAME) priv/setup_device.config setup -pz $(PWD)/ebin \ - -target rel_device -vsn 0.1 - - -doc: - ./REBAR_DOC=1 ./rebar skip_deps=true get-deps doc +# target_backend: +# ERL_LIBS=$(PWD)/deps:$(ERL_LIBS) \ +# $(SETUP_GEN) $(NAME) priv/backend.config setup -pz $(PWD)/ebin \ +# -target rel_backend -vsn 0.1 + +# target_device: +# ERL_LIBS=$(PWD)/deps:$(ERL_LIBS) \ +# $(SETUP_GEN) $(NAME) priv/setup_device.config setup -pz $(PWD)/ebin \ +# -target rel_device -vsn 0.1 + +# doc: +# ./REBAR_DOC=1 ./rebar skip_deps=true get-deps doc clean: ./rebar clean |