UPGRADE YOUR BROWSER

We have detected your current browser version is not the latest one. Xilinx.com uses the latest web technologies to bring you the best online experience possible. Please upgrade to a Xilinx.com supported browser:Chrome, Firefox, Internet Explorer 11, Safari. Thank you!

cancel
Showing results for 
Search instead for 
Did you mean: 
236 Views
Registered: ‎10-01-2019

Petalinux build in gitlab

Jump to solution

Trying to setup Petalinux in gitlab so that it builds on every push.

I have created a docker container with Petalinux 2018.1 installed in it and I am using it in my .gitlab-ci.yml file to run petalinux-build command.

The images get built successfully in my local virtual machine when I use the docker image.

But when I run in gitlab it is always stuck in generating Kconfig for project step and it never goes beyond that stage.

Please help me to setup the build in gitlab.

0 Kudos
1 Solution

Accepted Solutions
111 Views
Registered: ‎10-01-2019

Re: Petalinux build in gitlab

Jump to solution

I solved it by using xvfb-run:

xvfb-run -a petalinux-build

View solution in original post

3 Replies
Observer rmm
Observer
115 Views
Registered: ‎11-05-2018

Re: Petalinux build in gitlab

Jump to solution

I am also having trouble with this using petalinux 2018.2 on an ubuntu 16.04 base. 

 

I can successfully run     

echo E | petalinux-config --get-hw-description=../mypathtoHDF/

to generate the config when I am running docker locally. e.g. 

 docker run -it petalinux:2018.2

 

However, when the job is run through a gitlab runner it hangs on "[INFO] generating Kconfig for project" 

 

I think that it might have something to do with the fact that gitlab-runner is starting docker with the env variable 

TERM=dumb

I have tried manually setting that to `export TERM=xterm` (which is what it shows when I run docker locally) , but that doesn't seem to have any effect. 

 

Please let me know if you solve this issue. I'll do the same. 

 

 

0 Kudos
112 Views
Registered: ‎10-01-2019

Re: Petalinux build in gitlab

Jump to solution

I solved it by using xvfb-run:

xvfb-run -a petalinux-build

View solution in original post

Highlighted
Observer rmm
Observer
93 Views
Registered: ‎11-05-2018

Re: Petalinux build in gitlab

Jump to solution

Blessings to you! Thanks :D

 

https://gph.is/2q9pdw8