cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
bilginmu16
Observer
Observer
1,452 Views
Registered: ‎02-07-2019

Cmake on Petalinux

Jump to solution

Hello everyone,

 

I have a zynq cora board. Petalinux is running on it. I want to build my project on petalinux. However  need to cmake.  Cmake should run on petalinux. How can I add cmake to petalinux ? Is there any way to do this ?

 

Thanks.

0 Kudos
1 Solution

Accepted Solutions
shabbirk
Moderator
Moderator
1,426 Views
Registered: ‎12-04-2016

Hi @bilginmu16 

If you want to add just cmake utility, follow these steps:

Add IMAGE_INSTALL_append = " cmake"  to the file: project-spec/meta-user/recipes-core/images/petalinux-image-full.bbappend

Enable it in roots: petalinux-config -c rootfs ->  user packages -> [*] cmake 

 

Best Regards

Shabbir

View solution in original post

5 Replies
shabbirk
Moderator
Moderator
1,427 Views
Registered: ‎12-04-2016

Hi @bilginmu16 

If you want to add just cmake utility, follow these steps:

Add IMAGE_INSTALL_append = " cmake"  to the file: project-spec/meta-user/recipes-core/images/petalinux-image-full.bbappend

Enable it in roots: petalinux-config -c rootfs ->  user packages -> [*] cmake 

 

Best Regards

Shabbir

View solution in original post

bilginmu16
Observer
Observer
1,398 Views
Registered: ‎02-07-2019

Thanks @shabbirk

 Petalinux has petalinux-image.bbappend instead of petalinux-image-full.bbappend.

I apply the same procedure as you said  for petalinux-image.bbappend. There is no problem. I added cmake utility. I want to know that how to use petalinux-image.bbappend and detailed information. Where can I get that informations ? 

Thanks a lot again.

0 Kudos
shabbirk
Moderator
Moderator
1,396 Views
Registered: ‎12-04-2016

Hi @bilginmu16 

It is like any other package adding to petalinux. Refer UG1144 (Page 82)

https://www.xilinx.com/support/documentation/sw_manuals/xilinx2019_1/ug1144-petalinux-tools-reference-guide.pdf

 

Best Regards

Shabbir

0 Kudos
bilginmu16
Observer
Observer
1,377 Views
Registered: ‎02-07-2019

Thanks your reply @shabbirk 

I want to know one more thing. I added git to petalinux. But git features are diminished. For example "submodule" command, there is no "submodule" command. Is there any way to add ?

 

King regards

0 Kudos
rockydemag
Visitor
Visitor
690 Views
Registered: ‎02-17-2021

In Petalinux 2020.2, this will be added to /project-spec/meta-user/conf/user-rootfsconfig as

CONFIG_cmake

0 Kudos