Liviu's scripts build his snapshot sources.
If you want to build from the openocd repo then uncomment the three lines here:

https://github.com/xpack-dev-tools/openocd-xpack/blob/xpack/scripts/defs-source.sh#L41

FWIW here are all of the commands that I run (all itemised in Liviu's 
instructions) to do a "default" build using his scripts on a clean VM 
installation of Ubuntu 18.04:

https://xpack.github.io/xbb/prerequisites/

sudo apt-get install -y apt-transport-https ca-certificates  curl 
software-properties-common

curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -

version_name=$(lsb_release -cs)
sudo add-apt-repository  "deb [arch=amd64] 
https://download.docker.com/linux/ubuntu  ${version_name} stable"

sudo apt-get update
sudo apt-get -y install docker-ce

sudo docker run hello-world

sudo groupadd docker
sudo gpasswd -a ${USER} docker
sudo service docker restart

shutdown -r now

docker run hello-world

rm -rf ~/Downloads/openocd-xpack.git
git clone --recurse-submodules 
https://github.com/xpack-dev-tools/openocd-xpack.git 
~/Downloads/openocd-xpack.git

bash ~/Downloads/openocd-xpack.git/scripts/build.sh --all


________________________________
From: Liviu Ionescu <i...@livius.net>
Sent: Saturday 29 August 2020 19:21
To: kristof.mul...@telenet.be <kristof.mul...@telenet.be>
Cc: Tommy Murphy <tommy_mur...@hotmail.com>; johan <jo...@embeetle.com>; matic 
<ma...@embeetle.com>; openocd-devel <openocd-devel@lists.sourceforge.net>
Subject: Re: [OpenOCD-devel] Missing libusb shared object file in xPack build.



> On 29 Aug 2020, at 21:18, kristof.mul...@telenet.be wrote:
>
> ... I got it running properly

told you so!

> So what would change in these commands to achieve that? ... defs-source.sh'
> file (uncommenting the last three lines)? Or is it something else?

Keine Ahnung, I never used the scripts with different repos. those three lines 
were added by Tommy.


Liviu

_______________________________________________
OpenOCD-devel mailing list
OpenOCD-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/openocd-devel

Reply via email to