[yocto] Can't override task from bbclass with - in its name
Christopher Larson
clarson at kergoth.com
Sun Oct 26 10:41:56 PDT 2014
On Sun, Oct 26, 2014 at 8:15 AM, Vuille, Martin (Martin) <vmartin at avaya.com>
wrote:
> I have custom classes that override a task thus (in foo.bbclass)
>
> foo_do_something () {
> ...
> }
>
> EXPORT_FUNCTIONS do_something
>
> but if I change the name to foo-bar.bbclass and change the class thus
>
> foo-bar_do_something () {
> ...
> }
>
> EXPORT_FUNCTIONS do_something
>
> then building fails with "foo-bar_do_something: not found" and, sure
> enough,
> run.do_something does not contain the definition of foo-bar_do_something.
>
- isn't a valid character in a shell function, so while potentially
irritating, it's not surprising :)
--
Christopher Larson
clarson at kergoth dot com
Founder - BitBake, OpenEmbedded, OpenZaurus
Maintainer - Tslib
Senior Software Engineer, Mentor Graphics
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.yoctoproject.org/pipermail/yocto/attachments/20141026/8aacb641/attachment.html>
More information about the yocto
mailing list