All of lore.kernel.org
 help / color / mirror / Atom feed
From: Davide Soldan <davide.soldan@kynetics.it>
To: Otavio Salvador <otavio@ossystems.com.br>
Cc: "meta-freescale@yoctoproject.org" <meta-freescale@yoctoproject.org>
Subject: Re: extend image.bbclass (or any bbclass file)
Date: Fri, 12 Jul 2013 15:42:25 +0200	[thread overview]
Message-ID: <21464657.AurzrW8pRQ@fedora-fisso> (raw)
In-Reply-To: <CAP9ODKpnCO-EWgWm3zKW7D7b+o7dtf8tHVyC5HqoyC5YcvT1gA@mail.gmail.com>

Wonderful thank you!

In data venerdì 12 luglio 2013 10:35:32, Otavio Salvador ha scritto:
> On Fri, Jul 12, 2013 at 8:10 AM, Davide Soldan
> <davide.soldan@kynetics.it> wrote:
> > Hi to all,
> > I'm trying to move, from outside to inside my recipes, all the changes I've done for my custom image.
> > For example I changed the image.bbclass adding a function. But this file is outside of my recipes that are stored under my git repository. So I'd like to move this function from image.bbclass to another bbclass file under mi recipes directory.
> > I tried to copy image.bbclass under my recipes directory, change its name, and references correctly, but duplicates functions gave me some errors:
> >
> > ERROR: The function normal_groups defined in image.bbclass was already declared in image-custom.bbclass. BitBake has a global python function namespace so shared functions should be declared in a common include file rather than being duplicated, or if the functions are different, please use different function names.
> > ERROR: The function complementary_globs defined in image.bbclass was already declared in image-custom.bbclass. BitBake has a global python function namespace so shared functions should be declared in a common include file rather than being duplicated, or if the functions are different, please use different function names.
> > ERROR: The function get_devtable_list defined in image.bbclass was already declared in image-custom.bbclass. BitBake has a global python function namespace so shared functions should be declared in a common include file rather than being duplicated, or if the functions are different, please use different function names.
> >
> > So I think there should be a way to append some code to image.bbclass as I can do with recipes and bbappend files...right? How I can do that? Or maybe there's another and better way to do that?
> 
> Yes; you can make some extensions to it as we did in:
> 
> http://git.yoctoproject.org/cgit/cgit.cgi/meta-fsl-arm/tree/classes/image_types_fsl.bbclass
> 
> Regards,
> 
> --
> Otavio Salvador                             O.S. Systems
> http://www.ossystems.com.br        http://projetos.ossystems.com.br
> Mobile: +55 (53) 9981-7854            Mobile: +1 (347) 903-9750


  reply	other threads:[~2013-07-12 13:42 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-07-12 11:10 extend image.bbclass (or any bbclass file) Davide Soldan
2013-07-12 13:35 ` Otavio Salvador
2013-07-12 13:42   ` Davide Soldan [this message]
2013-07-12 11:11 Davide Soldan
2013-07-12 11:22 ` Erik Botö
2013-07-12 13:02   ` Davide Soldan

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=21464657.AurzrW8pRQ@fedora-fisso \
    --to=davide.soldan@kynetics.it \
    --cc=meta-freescale@yoctoproject.org \
    --cc=otavio@ossystems.com.br \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.