[Home]XenomaiRuntimePackage

LinuxCNCKnowledgeBase | RecentChanges | PageIndex | Preferences | LinuxCNC.org

Showing revision 5

Building a Xenomai Runtime Package

This howto describes building the xenomai-runtime package from git.

The Xenomai runtime package is needed by the Xenomai threads versions of LinuxCNC (xenomai-kernel and xenomai-user). See this page for more info: XenomaiKernel

This recipe was developed on Ubuntu Precise, amd64 arch, but will probably work for other versions of Debian-like distros and other arches.

This builds either the master branch or a release. As of this writing, debian package building is broken in v2.6.2, but fixed in master.

Prerequisites

Set variables needed for the build

Adjust the following values according to your needs.

 # Version of xenomai release to use.  Stable versions listed here:
 # http://download.gna.org/xenomai/stable/
 #XENO_VERSION=2.6.2  # broken, so...
 # ** Building from master, so bump minor version and add 'pre'
 XENO_VERSION=2.6.3pre

 # Xenomai package release; this should be bumped with each new release
 PKG_RELEASE=1

 # If building from master, set this variable:
 MASTER_OPTS="--git-upstream-branch=master --git-upstream-tree=branch"

 # Your name and email for the commit
 FULLNAME="John Doe"
 EMAIL="jdoe@example.com"

install prerequisite packages

This list may be incomplete; git-buildpackage will print a list if more are needed.

 # package build prereqs
 sudo apt-get install devscripts debhelper dh-kpatches findutils
 # git build prereqs
 sudo apt-get install git-core git-buildpackage

Build xenomai

 # clone repo
 git clone git://git.xenomai.org/xenomai-2.6.git
 cd xenomai-2.6

 # check out tagged version or master into new branch
 test -z "$MASTER_OPTS" && BRANCH=v$XENO_VERSION || BRANCH=master
 git checkout -b v$XENO_VERSION-deb $BRANCH

 # update changelog and commit changes
 DEBEMAIL="$EMAIL" DEBFULLNAME="$FULLNAME" \
     debchange -v $XENO_VERSION-$PKG_RELEASE Build v$XENO_VERSION
 git commit -am "Build deb packages for v$XENO_VERSION" --author="$FULLNAME <$EMAIL>"

 # build the package
 git-buildpackage \
     --git-debian-branch=v$XENO_VERSION-deb \
     --git-export-dir=.. \
     --git-ignore-new \
     $MASTER_OPTS \
     -uc -us

 # install resulting packages
 cd ..
 sudo dpkg -i *.deb

Links


LinuxCNCKnowledgeBase | RecentChanges | PageIndex | Preferences | LinuxCNC.org
This page is read-only. Follow the BasicSteps to edit pages. | View other revisions | View current revision
Edited January 8, 2013 9:08 pm by Zultron (diff)
Search:
Published under a Creative Commons License