Skip to contentSkip to conversation

How do I include all packages under a layer ?

DISCUSSION Madhu Krishnamurthy 2 participants 4 messages May 10, 2019 – May 11, 2019 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw

HelloI want to add packages to my image using the local.conf file. For exampleIMAGE_INSTALLED_append += " dmidecode i2c-tools"
Do I have to specify every package or is there a way I can add all packages inside a layer?For example, how do I add all packages from inside poky/meta to my image? Or at least how do I add all packages under poky/meta/recipes-devtools ? thanksMadhu

#2 lore raw
Quoted 3 lines · Madhu Krishnamurthy

Do I have to specify every package or is there a way I can add all packages inside a layer? For example, how do I add all packages from inside poky/meta to my image?
Or at least how do I add all packages under poky/meta/recipes-devtools ?

You need to list them explicitly. Some layers have packagegroups that pull in all the dependencies if that makes sense, but adding "all of oe-core/recipes-devtools" would be odd: you'd have three package managers for a start.

Ross

#3 lore raw

Thanks Ross. The idea of more packages getting pulled in due to dependencies is going to help me. I needed many packages under recipes-devtools. So I thought it might be better to pull them all instead of listing each one of them. After seeing your response I realize that I will end up with 3 package managers.  So I will just chose one.
If I have to chose just one, will any one of them (say apt)  work? I somehow had come to believe that you can only use opkg in Yocto.
thanks and best regardsMadhu

From: "Burton, Ross" <[email protected]>
To: Madhu Krishnamurthy <[email protected]>
Cc: "[email protected]" <[email protected]>
Sent: Saturday, May 11, 2019 8:35 AM
Subject: Re: [yocto] How do I include all packages under a layer ?

Quoted 3 lines · Madhu Krishnamurthy

Do I have to specify every package or is there a way I can add all packages inside a layer? For example, how do I add all packages from inside poky/meta to my image?
Or at least how do I add all packages under poky/meta/recipes-devtools ?

You need to list them explicitly.  Some layers have packagegroups that pull in all the dependencies if that makes sense, but adding "all of oe-core/recipes-devtools" would be odd: you'd have three package managers for a start.

Ross

#4 lore raw
Quoted 1 line · Madhu Krishnamurthy

If I have to chose just one, will any one of them (say apt) work? I somehow had come to believe that you can only use opkg in Yocto.

The default is opkg but RPM and dpkg are supported. I'd pick either opkg or rpm though.

Ross