bitbake: ast: Add error when trying to use dash in sh function names
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 8 Jan 2015 10:35:16 +0000 (10:35 +0000)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>
Sun, 26 Jul 2015 13:13:53 +0000 (10:13 -0300)
commitf660769e19f33b6ff24c7baa64f2e352083bdbb4
tree97f572d56a1981132f9d42d7dd181ec03a924eec
parentebbc3d57f528a96730bb97e1de5312ea84b924a6
bitbake: ast: Add error when trying to use dash in sh function names

A dash character is illegal in function names in sh (but not bash). Since
our shell tasks run under sh and the shell parser is sh based, EXPORT_FUNCTIONS
won't work with class names containing a dash.

We can't change sh, we can ensure the user is warned about the problem
straight away though.

[YOCTO #7006]

(Bitbake rev: 879fe20f47ba75f4afb3484d4398d5fd60431e12)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
bitbake/lib/bb/parse/ast.py