All of lore.kernel.org
 help / color / mirror / Atom feed
* SOC_FAMILY broken
@ 2010-09-01 21:14 Frans Meulenbroeks
  2010-09-01 21:22 ` Leon Woestenberg
  2010-09-02 12:17 ` Maupin, Chase
  0 siblings, 2 replies; 6+ messages in thread
From: Frans Meulenbroeks @ 2010-09-01 21:14 UTC (permalink / raw)
  To: openembedded-devel

Patch http://cgit.openembedded.org/cgit.cgi/openembedded/commit/?id=07076390358f211bd96779bec2d6eb5eaa0ad699
creates errors like:
ERROR: '[]' RDEPENDS/RRECOMMENDS or otherwise requires the runtime
entity 'virtual/arm-oe-linux-gnueabi-gcc-2.95' but it wasn't found in
any PACKAGE or RPROVIDES variables

Root cause: if SOC_FAMILY is not set (awhich is the case for most
MACHINEs  and all distro's except angstrom) the test in base.bbclass
to skip recipes for different machines never raises the SkipPackage
exception.

This is the current code (about line 387 in base.bbclass):
        need_machine = bb.data.getVar('COMPATIBLE_MACHINE', d, 1)
        if need_machine:
            import re
            this_machine = bb.data.getVar('MACHINE', d, 1)
            if this_machine and not re.match(need_machine, this_machine):
                this_soc_family = bb.data.getVar('SOC_FAMILY', d, 1)
                if this_soc_family and not re.match(need_machine,
this_soc_family):
                    raise bb.parse.SkipPackage("incompatible with
machine %s" % this_machine)

I see two possible fixes.
1. Make sure SOC_FAMILY is always defined. E.g. in bitbake.conf say
SOC_FAMILY ?= "Unknown"
2. improve the test to deal with an undefined soc_famile
E.g rewrite the one but last line to:
                    if (this_soc_family and not re.match(need_machine,
this_soc_family)) or not this_soc_family:

I tested the 2nd patch with distro minimal, target sheevaplug, which
gave the error before. After rewriting the line as suggested skipping
works and the problem is gone.
I have this also as a formal patch, but there might be more desirable
ways to do this.

Please advise.

Frans.



^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2010-09-02 12:34 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-09-01 21:14 SOC_FAMILY broken Frans Meulenbroeks
2010-09-01 21:22 ` Leon Woestenberg
2010-09-01 23:09   ` Michael 'Mickey' Lauer
2010-09-02  6:41     ` Frans Meulenbroeks
2010-09-02 12:34   ` Maupin, Chase
2010-09-02 12:17 ` Maupin, Chase

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.