From: Richard Purdie <richard.purdie@linuxfoundation.org>
To: Cristiana Voicu <cristiana.voicu@intel.com>
Cc: bitbake-devel@lists.openembedded.org
Subject: Re: [PatchV2] hob/bitbake: custom image is now using the base image
Date: Tue, 11 Dec 2012 15:48:52 +0000 [thread overview]
Message-ID: <1355240932.6771.34.camel@ted> (raw)
In-Reply-To: <1355233468-10679-1-git-send-email-cristiana.voicu@intel.com>
On Tue, 2012-12-11 at 15:44 +0200, Cristiana Voicu wrote:
> Till now, a custom image made in Hob was using only the packages from
> the base image. Now it is using everything declared in the base image.
> Also next to hob-image.bb, it creates another .bb file which is used
> in building process. Those images are ignored by git.
>
> [YOCTO #2601]
> Signed-off-by: Cristiana Voicu <cristiana.voicu@intel.com>
> ---
> .gitignore | 1 +
> bitbake/lib/bb/command.py | 10 ++++++++++
> bitbake/lib/bb/cooker.py | 20 ++++++++++++++++++++
> bitbake/lib/bb/ui/crumbs/builder.py | 6 +++++-
> bitbake/lib/bb/ui/crumbs/hobeventhandler.py | 10 +++++++++-
> bitbake/lib/bb/ui/crumbs/hoblistmodel.py | 6 ++++++
> 6 files changed, 51 insertions(+), 2 deletions(-)
>
> diff --git a/.gitignore b/.gitignore
> index 88c91f6..003f09a 100644
> --- a/.gitignore
> +++ b/.gitignore
> @@ -15,3 +15,4 @@ meta-*
> *~
> !meta-yocto
> !meta-yocto-bsp
> +hob-image-*.bb
> diff --git a/bitbake/lib/bb/command.py b/bitbake/lib/bb/command.py
> index 3f28bca..28b4c5d 100644
> --- a/bitbake/lib/bb/command.py
> +++ b/bitbake/lib/bb/command.py
> @@ -197,6 +197,16 @@ class CommandsSync:
> filterfunc = params[0]
> bb.parse.parse_py.ConfHandler.confFilters.append(filterfunc)
>
> + def matchFile(self, command, params):
> + fMatch = params[0]
> + return command.cooker.matchFile(fMatch)
> +
> + def generateNewImage(self, command, params):
> + image = params[0]
> + base_image = params[1]
> + package_queue = params[2]
> + return command.cooker.generateNewImage(image, base_image, package_queue)
> +
> class CommandsAsync:
> """
> A class of asynchronous commands
> diff --git a/bitbake/lib/bb/cooker.py b/bitbake/lib/bb/cooker.py
> index 6b58f91..2338b31 100644
> --- a/bitbake/lib/bb/cooker.py
> +++ b/bitbake/lib/bb/cooker.py
> @@ -1188,6 +1188,26 @@ class BBCooker:
>
> self.server_registration_cb(buildTargetsIdle, rq)
>
> + def generateNewImage(self, image, base_image, package_queue):
> + '''
> + Create a new image with a "require" base_image statement
> + '''
> + image_name = os.path.splitext(image)[0]
> + timestr = time.strftime("-%Y%m%d-%H%M%S")
> + dest = image_name + str(timestr) + ".bb"
> +
> + with open(dest, "w") as imagefile:
> + imagefile.write("inherit image\n")
Do we need the above line? Doesn't the original image do this for us?
Looks good to me otherwise though, much better than the previous
version!
Cheers,
Richard
prev parent reply other threads:[~2012-12-11 16:03 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-12-11 13:44 [PatchV2] hob/bitbake: custom image is now using the base image Cristiana Voicu
2012-12-11 15:48 ` Richard Purdie [this message]
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=1355240932.6771.34.camel@ted \
--to=richard.purdie@linuxfoundation.org \
--cc=bitbake-devel@lists.openembedded.org \
--cc=cristiana.voicu@intel.com \
/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.