Skip to contentSkip to conversation

Removing a package from an image

DISCUSSION Gary Thomas 2 participants 4 messages Jun 27, 2013

lore
Share & tools
lore
#0 lore raw

I'm using one of the machines from meta-fsl-arm (i.MX6) which has this setting in the MACHINE.conf:
MACHINE_EXTRA_RRECOMMENDS_append_mx6 = " imx-audio"

While this is reasonable for most of these boards, I have one which has no audio and I'd like to leave this package (and all that it pulls with it) out of my images.

I tried using this in my image recipe with no joy:
MACHINE_EXTRA_RRECOMMENDS := "${@oe_filter_out('imx-audio', '${MACHINE_EXTRA_RRECOMMENDS}', d)}"

How can I "filter out" this extra/unwanted/setting?

Signature · 4 lines
------------------------------------------------------------
Gary Thomas                 |  Consulting for the
MLB Associates              |    Embedded world
------------------------------------------------------------
#1 lore raw
Quoted 8 lines · Gary Thomas

I'm using one of the machines from meta-fsl-arm (i.MX6) which has this setting in the MACHINE.conf:
MACHINE_EXTRA_RRECOMMENDS_append_mx6 = " imx-audio"

While this is reasonable for most of these boards, I have one which has no audio and I'd like to leave this package (and all that it pulls with it) out of my images.

Quoted 5 lines

I tried using this in my image recipe with no joy:
MACHINE_EXTRA_RRECOMMENDS := "${@oe_filter_out('imx-audio',
'${MACHINE_EXTRA_RRECOMMENDS}', d)}"

How can I "filter out" this extra/unwanted/setting?

you can use BAD_RECOMMENDATIONS variable to list packages that must be filtered out during image creation. however BAD_RECOMMENDATIONS does not work with all IMAGE_FSTYPES. I think it only works with ipk for now.

#2 lore raw
Quoted 13 lines · Nicolas Dechesne
Quoted 12 lines · Gary Thomas

I'm using one of the machines from meta-fsl-arm (i.MX6) which has this setting in the MACHINE.conf:
MACHINE_EXTRA_RRECOMMENDS_append_mx6 = " imx-audio"

While this is reasonable for most of these boards, I have one which has no audio and I'd like to leave this package (and all that it pulls with it) out of my images.

I tried using this in my image recipe with no joy:

   MACHINE_EXTRA_RRECOMMENDS := "${@oe_filter_out('imx-audio',

'${MACHINE_EXTRA_RRECOMMENDS}', d)}"

Quoted 7 lines
Quoted 1 line

How can I "filter out" this extra/unwanted/setting?

you can use BAD_RECOMMENDATIONS variable to list packages that must be filtered out during image creation. however BAD_RECOMMENDATIONS does not work with all IMAGE_FSTYPES. I think it only works with ipk for now.

I am using ipk and this does seem to work, thanks.

I'd still be interested to know if there is a more general mechanism I can use for such things in the future.

Signature · 4 lines
------------------------------------------------------------
Gary Thomas                 |  Consulting for the
MLB Associates              |    Embedded world
------------------------------------------------------------