Skip to content

2.1.04 Build From GitHub Repo

lrrajesh edited this page Sep 14, 2016 · 1 revision

Please review the sections on "Build Dependencies" and "Pre-build Configurations" before actually starting to build.

The recommended install route is to build and install from the source RPM. However, you can build directly from the GitHub repo as well.

Following GNU build tools minimum versions are requirement for configuring and building Sensys from the GitHub development repo.

It is recommended to download and install the .tar.gz file of each, untar and run the following:

shell$ ./configure [--prefix <install_folder>]
shell$ make

Run the following as root user if current user does not have write permissions to install folder

shell$ make install

Building from repo also requires:

flex libnl libtool-ltdl m4 patch xz

Following are the steps for building sensys from the github repo. Before building create an account in the github. Clone the sensys repo from the github branch.

shell$ git clone https://github.com/intel-ctrlsys/sensys
-or- 
shell$ git clone https://<username>@github.com/intel-ctrlsys/sensys

shell$ cd orcm
shell$ ./autogen.pl
shell$ mkdir build  
      Note: User can create the build folder where ever they want 
shell$ cd build
shell$ ../configure \
        --with-platform=../contrib/platform/intel/hillsboro/orcm-linux \
        [--prefix=<install_folder>]

The file pointed to by --with-platform= holds a list of configure options. See configure --help for the full list of options.

shell$ make

Run the following as root user if current user does not have write permissions to install folder

shell$ make install

This will install the files under /usr/local unless the optional (but recommended) prefix is used.

The RPM spec.in file stores the default configure switches that are used when building the source RPM and can be used as a reference when building directly from the GitHub repo. That file can be found here:

The recommended minimum settings when running configure on GitHub based installs:

--prefix=/opt/open-rcm 
--with-platform=contrib/platform/intel/hillsboro/orcm-linux

These are additional configure options that also can be used but are not required:

--exec-prefix=/opt/open-rcm 
--bindir=/opt/open-rcm/bin 
--sbindir=/opt/open-rcm/sbin 
--sysconfdir=/opt/open-rcm/etc 
--datadir=/opt/open-rcm/share 
--includedir=/opt/open-rcm/include 
--libdir=/opt/open-rcm/lib64 
--libexecdir=/opt/open-rcm/lib 
--localstatedir=/var 
--sharedstatedir=/opt/open-rcm/com 
--mandir=/opt/open-rcm/share/man 
--infodir=/opt/open-rcm/share/info 
Clone this wiki locally