Hi Richard, On 18 January 2016 at 09:25, Richard Purdie <richard.pur...@linuxfoundation.org> wrote: > Shell function names can't contain '-' characters, which means our image > task names also can't. Add some mapping to use '_' instead of the '-' so > images like "rpi-sdimg" work again. > > Signed-off-by: Richard Purdie <richard.pur...@linuxfoundation.org> > > diff --git a/meta/classes/image.bbclass b/meta/classes/image.bbclass > index 58b75da..e81edb2 100644 > --- a/meta/classes/image.bbclass > +++ b/meta/classes/image.bbclass > @@ -393,6 +393,12 @@ python () { > else: > subimages.append(realt) > > + after = 'do_image' > + for dep in typedeps[t]: > + after += ' do_image_%s' % dep.replace("-", "_") > + > + t = t.replace("-", "_") > + > d.setVar('do_image_%s' % t, '\n'.join(cmds)) > d.setVarFlag('do_image_%s' % t, 'func', '1') > d.setVarFlag('do_image_%s' % t, 'fakeroot', '1') > @@ -402,10 +408,6 @@ python () { > d.appendVarFlag('do_image_%s' % t, 'vardeps', ' '.join(vardeps)) > d.appendVarFlag('do_image_%s' % t, 'vardepsexclude', 'DATETIME') > > - after = 'do_image' > - for dep in typedeps[t]: > - after += ' do_image_%s' % dep > - > bb.debug(2, "Adding type %s before %s, after %s" % (t, > 'do_image_complete', after)) > bb.build.addtask('do_image_%s' % t, 'do_image_complete', after, d) > } > >
This fixes building Raspberry Pi 2 SD images for me. I have the tested patch and it is working. Signed-off-by: Jonathan Liu <net...@gmail.com> Regards, Jonathan -- _______________________________________________ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-core