All of lore.kernel.org
 help / color / mirror / Atom feed
From: Tomas Frydrych <tf+lists.yocto@r-finger.com>
To: yocto@yoctoproject.org
Subject: Re: The BitBake equivalent of "Hello, World!"
Date: Fri, 05 Oct 2012 10:54:19 +0100	[thread overview]
Message-ID: <506EAE4B.9070105@r-finger.com> (raw)
In-Reply-To: <1349430416.15658.10.camel@ted>

>> Tasks must be Python functions. 
>>         
>>
> No, they can be shell functions too.

Probably worth adding that if you are doing an _append() on a task
function, you have to match the original function type. E.g., if you
want to append a shell snippet to a python task function, you need to do
something like this (from the eglibc recipe):

do_unpack_append() {
    bb.build.exec_func('do_move_ports', d)
}

do_move_ports() {
        if test -d ${WORKDIR}/${EGLIBC_BRANCH}/ports ; then
	    rm -rf ${S}/ports
	    mv ${WORKDIR}/${EGLIBC_BRANCH}/ports ${S}/
	fi
}

Tomas


  reply	other threads:[~2012-10-05  9:54 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
2012-10-05  9:54               ` Tomas Frydrych [this message]
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=506EAE4B.9070105@r-finger.com \
    --to=tf+lists.yocto@r-finger.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.