Details
Details
Assignee
Marec Frederic
Marec FredericReporter
Sebastien Douheret
Sebastien DouheretLabels
Contract ID
Time tracking
1h logged
Components
Priority
Created March 28, 2018 at 1:31 PM
Updated June 14, 2018 at 10:36 PM
Resolved June 6, 2018 at 2:54 PM
There are 2 steps:
add jobs in Jenkins of build.automotivelinux.org to build XDS packages : xds-server, xds-agent, xds-cli and xds-gdb
then published only tagged / released version of resulting zip archives for example on https://download.automotivelinux.org/AGL/
Note that for now XDS packages are published on IoT.bzh github, for example : https://github.com/iotbzh/xds-server/releases
Below are the list of commands to build and package xds-server
(just replace xds-server by xds-agent or xds-cli or xds-gdb to build accordingly xds-agent, xds-cli and xds-gdb)
Note that these commands (and more) are documented in XDS chapter of AGL doc website (here [[1]|http://docs.automotivelinux.org/docs/devguides/en/dev/reference/xds/part-2/1_Prerequisites.html] and [[2]|http://docs.automotivelinux.org/docs/devguides/en/dev/reference/xds/part-2/1_xds-server/3_build.html]) ; at least when AGL doc website will be regenerated because I just pushed changes in xds/src/xds-docs that are not yet visible in online doc.
Install dependencies tools:
Install various tools
sudo apt-get install git make npm curl git zip unzip wget # Install Go source /etc/os-release wget -O - "http://keyserver.ubuntu.com/pks/lookup?op=get&search=0x52B59B1571A79DBC054901C0F6BC817356A3D45E" | sudo apt-key add - sudo bash -c "cat >> /etc/apt/sources.list.d/golang.list <<EOF deb [http://ppa.launchpad.net/longsleep/golang-backports/ubuntu] $\{VERSION_CODENAME} main EOF" sudo apt-get update sudo apt-get install golang-go # Install nodejs LTS version sudo npm install --global n sudo n lts
Build:
Go to directory where you want (for example : cd $HOME/xds )
ROOTDIR=`pwd` mkdir -p $ROOTDIR/src/gerrit.automotivelinux.org/gerrit/src/xds cd $ROOTDIR/src/gerrit.automotivelinux.org/gerrit/src/xds git clone https://gerrit.automotivelinux.org/gerrit/src/xds/xds-server cd xds-server export V=1 make package-all
NOTE: the directory structure above is important!
> we can work out the jenkins job together so you know where to poke at if you need changes to the build.
Let me know when Jenkins jobs will be setup and don't hesitate to contact me if you encounter any problem.
[1]: http://docs.automotivelinux.org/docs/devguides/en/dev/reference/xds/part-2/1_Prerequisites.html
[2]: http://docs.automotivelinux.org/docs/devguides/en/dev/reference/xds/part-2/1_xds-server/3_build.html