cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Highlighted
Explorer
Explorer
273 Views
Registered: ‎09-19-2018

Add "make" command to Petalinux

Jump to solution

Hi, I would like to have the "make" Linux command in my Petalinux. 

Can anyone tell me how to add this command to Petalinux?

Thanks in advance 

0 Kudos
1 Solution

Accepted Solutions
Highlighted
Scholar
Scholar
188 Views
Registered: ‎05-28-2013

And how can I include the whole toolchain ("gcc") ?


Try Filesystem Packages -> misc -> packagegroup-core-buildessential
(and you'll likely also want packagegroup-core-buildessential-dev in the same place)

View solution in original post

5 Replies
Highlighted
Scholar
Scholar
260 Views
Registered: ‎05-28-2013

You can enable it by running: petalinux-config -c rootfs
In the resulting menu, select Filesystem Packages --> devel --> make.

Note this will only give you the "make" executable. It does not include a whole toolchain (no "gcc").

You can also refer to UG1144.

0 Kudos
Highlighted
Explorer
Explorer
197 Views
Registered: ‎09-19-2018

Hi @rfs613,

And how can I include the whole toolchain ("gcc") ?

Thanks in advance.

0 Kudos
Highlighted
Scholar
Scholar
189 Views
Registered: ‎05-28-2013

And how can I include the whole toolchain ("gcc") ?


Try Filesystem Packages -> misc -> packagegroup-core-buildessential
(and you'll likely also want packagegroup-core-buildessential-dev in the same place)

View solution in original post

Highlighted
Explorer
Explorer
168 Views
Registered: ‎09-19-2018

why do you think I need buildessential-dev ?

I read somewhere not to select the packages ending with -dev or -dbg

0 Kudos
Highlighted
Scholar
Scholar
108 Views
Registered: ‎05-28-2013

The buildessential package is a shortcut which enables a number of individual packages all related to compiling C/C++ code on the target. Have a look at packagegroup-core-buildessential.bb under layers/core/meta/recipes-core/packagegroups.

Regarding the -dev and -dbg packages: in most cases the advice to not select them is correct - they are large and are not needed by most users. However if you want to compile software on the target, you will probably need header files for libraries that you are linking. The -dev packages contain these headers. As an example, packagegroup-core-buildessential.bb includes libstdc++ and also libstdc++-dev.

The -dbg packages are not needed on the target. They provide debugging info (symbol tables etc) since the target executables are normally stripped of all such unnecessary info. When you compile on the target, you can decide to include debug symbols (compile with -g flag) and whether to strip the resulting executables.

 

0 Kudos