Skip to contentSkip to conversation

easiest way to add opkg and all .ipk data to core-image-minimal?

DISCUSSION Robert P. J. Day 2 participants 3 messages Aug 5, 2013

lore
Share & tools
lore
#0 lore raw

i should know this but, if i don't want to define a new image, what
is the canonical way to add "opkg" and full ipk data to a stock build of, say, core-image-minimal? i can see that what i'll want is to inherit rootfs_ipk in some way, but i'm not sure of the correct way. thanks.

rday

Signature · 7 lines
========================================================================
Robert P. J. Day                                 Ottawa, Ontario, CANADA
                        http://crashcourse.ca

Twitter:                                       http://twitter.com/rpjday
LinkedIn:                               http://ca.linkedin.com/in/rpjday
========================================================================
#1 lore raw
Quoted 5 lines · Robert P. J. Day

i should know this but, if i don't want to define a new image, what
is the canonical way to add "opkg" and full ipk data to a stock build of, say, core-image-minimal? i can see that what i'll want is to inherit rootfs_ipk in some way, but i'm not sure of the correct way.

You should never have to inherit rootfs_ipk. image.bbclass inherits the appropriate rootfs class based on the packaging class(es) you have inherited and a variable.

From what I can recall, you'd need to add "package-management" to its IMAGE_FEATURES, or copy and modify its IMAGE_INSTALL to include ${ROOTFS_PKGMANAGE} rather than ${ROOTFS_PKGMANGE_BOOTSTRAP}.

Signature · 1 line
Christopher Larson
#2 lore raw
Quoted 8 lines · Chris Larson

On Mon, Aug 5, 2013 at 1:19 PM, Robert P. J. Day <[email protected]> wrote:
  i should know this but, if i don't want to define a new image, what is the canonical way to add "opkg" and full ipk data to a stock build of, say, core-image-minimal? i can see that what i'll want is to inherit rootfs_ipk in some way, but i'm not sure of the correct way.

Quoted 8 lines

You should never have to inherit rootfs_ipk. image.bbclass inherits the appropriate rootfs class based on the packaging class(es) you have inherited and a variable.

From what I can recall, you'd need to add "package-management" to its IMAGE_FEATURES, or copy and modify its IMAGE_INSTALL to include ${ROOTFS_PKGMANAGE} rather than ${ROOTFS_PKGMANGE_BOOTSTRAP}. -- Christopher Larson

yes, it was adding the "package-management" to IMAGE_FEATURES that i
saw as one option -- just wasn't sure that that was the "proper" way to do it. for now, as long as it works, i'll go with that.

rday

Signature · 7 lines
========================================================================
Robert P. J. Day                                 Ottawa, Ontario, CANADA
                        http://crashcourse.ca

Twitter:                                       http://twitter.com/rpjday
LinkedIn:                               http://ca.linkedin.com/in/rpjday
========================================================================