All of lore.kernel.org
 help / color / mirror / Atom feed
From: Richard Purdie <richard.purdie@linuxfoundation.org>
To: Rudolf Streif <rudolf.streif@linux.com>
Cc: "yocto@yoctoproject.org" <yocto@yoctoproject.org>
Subject: Re: The BitBake equivalent of "Hello, World!"
Date: Fri, 05 Oct 2012 10:46:56 +0100	[thread overview]
Message-ID: <1349430416.15658.10.camel@ted> (raw)
In-Reply-To: <CA+gsK-qzq5dK4QwOq1kw1U8tNbhDt-UZsRha-_ZKu0Kw8AWFAg@mail.gmail.com>

On Thu, 2012-10-04 at 20:00 -0700, Rudolf Streif wrote:
> Disclaimer: I am no Bitbake expert. I just put this together by
> rummaging through the Bitbake code for a couple of minutes. I am
> reasonably confident that what I am saying below is rather accurate
> but the Bitbake experts know better.
> 
> 
> 
>         Indeed it is.  One of my first tasks will be to *remove* as
>         much as possible from this until the only thing it does is
>         print out "Hello, World!"  I'll be happy to share my results
>         if anyone is interested.

>
> You can just do a recipe and overwrite do_build() in it e.g.
> 
> 
> python do_build() {
>     bb.note("Hello World")
> }
>         
That would print:

NOTE: Hello World

and would probably only sent it to the task logfile.

bb.plain("Hello World")

would make it to the console though :)

[...]



>         1) Must a "task function" be a Python function?  Or will a
>         bash function do?
> 
> 
> Tasks must be Python functions. 
>         
> 
No, they can be shell functions too.

Cheers,

Richard




  reply	other threads:[~2012-10-05  9:47 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-10-03 22:30 The BitBake equivalent of "Hello, World!" Patrick Turley
2012-10-03 22:56 ` Patrick Turley
2012-10-03 23:03   ` Rudolf Streif
2012-10-04 16:50     ` Patrick Turley
2012-10-04 18:58       ` Rudolf Streif
2012-10-04 21:26         ` Evade Flow
2012-10-05  0:47         ` Patrick Turley
2012-10-05  0:58           ` Patrick Turley
2012-10-05  3:02             ` Rudolf Streif
2012-10-05  3:06             ` Rudolf Streif
2012-10-05  3:00           ` Rudolf Streif
2012-10-05  9:46             ` Richard Purdie [this message]
2012-10-05  9:54               ` Tomas Frydrych
2012-10-09  0:30             ` Patrick Turley
2012-10-09  2:23               ` Rudolf Streif
2012-10-09 22:31                 ` Patrick Turley
2012-10-09 22:56                   ` McClintock Matthew-B29882
2012-10-09 23:40                     ` Patrick Turley
2012-10-11 21:12                     ` Patrick Turley
2012-10-10 15:45                   ` Evade Flow
2012-10-10 15:56                     ` Evade Flow

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=1349430416.15658.10.camel@ted \
    --to=richard.purdie@linuxfoundation.org \
    --cc=rudolf.streif@linux.com \
    --cc=yocto@yoctoproject.org \
    /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.