All of lore.kernel.org
 help / color / mirror / Atom feed
* Can't override task from bbclass with - in its name
@ 2014-10-26 15:15 Vuille, Martin (Martin)
  2014-10-26 17:41 ` Christopher Larson
  0 siblings, 1 reply; 3+ messages in thread
From: Vuille, Martin (Martin) @ 2014-10-26 15:15 UTC (permalink / raw)
  To: yocto

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.

Is this a known issue?

MV



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

* Re: Can't override task from bbclass with - in its name
  2014-10-26 15:15 Can't override task from bbclass with - in its name Vuille, Martin (Martin)
@ 2014-10-26 17:41 ` Christopher Larson
  2014-10-26 17:53   ` Vuille, Martin (Martin)
  0 siblings, 1 reply; 3+ messages in thread
From: Christopher Larson @ 2014-10-26 17:41 UTC (permalink / raw)
  To: Vuille, Martin (Martin); +Cc: yocto

[-- Attachment #1: Type: text/plain, Size: 902 bytes --]

On Sun, Oct 26, 2014 at 8:15 AM, Vuille, Martin (Martin) <vmartin@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

[-- Attachment #2: Type: text/html, Size: 1377 bytes --]

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

* Re: Can't override task from bbclass with - in its name
  2014-10-26 17:41 ` Christopher Larson
@ 2014-10-26 17:53   ` Vuille, Martin (Martin)
  0 siblings, 0 replies; 3+ messages in thread
From: Vuille, Martin (Martin) @ 2014-10-26 17:53 UTC (permalink / raw)
  To: Christopher Larson; +Cc: yocto

> From: kergoth@gmail.com [mailto:kergoth@gmail.com] On Behalf Of Christopher Larson
>
> - isn't a valid character in a shell function, so while potentially irritating, it's not surprising :)

Hmm, good point! Thanks
MV 

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

end of thread, other threads:[~2014-10-26 17:54 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-10-26 15:15 Can't override task from bbclass with - in its name Vuille, Martin (Martin)
2014-10-26 17:41 ` Christopher Larson
2014-10-26 17:53   ` Vuille, Martin (Martin)

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.