All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Woronicz, Bartosz ( NSN - PL/Wroclaw)" <bartosz.woronicz@nokia.com>
To: "EXT Burton, Ross" <ross.burton@intel.com>
Cc: "yocto@yoctoproject.org" <yocto@yoctoproject.org>
Subject: Re: Where should I append Yocto bitbake task to create work folder symlink ?
Date: Wed, 10 Feb 2016 15:00:50 +0100	[thread overview]
Message-ID: <56BB4292.5080708@nokia.com> (raw)
In-Reply-To: <CAJTo0LZj0YE1SyYLr_cUtEQPU9Gm_JHg7996fYM+Pq4jMMX-1A@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 1709 bytes --]


On 09.02.2016 14:56, EXT Burton, Ross wrote:
>
> On 9 February 2016 at 13:51, Woronicz, Bartosz ( NSN - PL/Wroclaw) 
> <bartosz.woronicz@nokia.com <mailto:bartosz.woronicz@nokia.com>> wrote:
>
>     Here is the whole bbclass/:
>     /
>
>         DESCRIPTION = "Creates symlink to the latest version workdir
>         of the package"
>
>         do_latest_link() {
>             if [ -n "${WORKDIR}" ]; then
>                 linkname="$(dirname ${WORKDIR})/latest"
>                 rm -f $linkname
>                 ln -s $(basename ${WORKDIR}) $linkname
>             fi
>         }
>         addtask latest_link after do_unpack
>
>         do_unpack[postfuncs] += "do_latest_link"
>
>
>     But for better understanding I made the more throughout look into
>     the documentations. I found the information about "postfuncs" you
>     talk about [1]. However, the tasks description [2] doesn't say
>     anything about including the task in the process, it just
>     describes the demanded order that the task is put ( addtask
>     something after|before othertask ).
>
>     That is so, until I read "3.6. Variable Flags"  [3]. Where is
>     quite clearly stated those variables control functionality and
>     *dependencies*.
>     The documentation is quite unclear in that case.
>
>
> If you're using a postfunc you don't need to addtask at all: using 
> postfuncs means you don't need to have a separate task at all.
>
> Ross
Ok, I understand now that 'addtask' is only necessary when I need 
seperate task to run. I think you solved my issue. Thanks again!

Kind regards,
Bartosz Woronicz
Engineer, Software Configuration (SCM)
NSN - PL/Wroclaw


[-- Attachment #2: Type: text/html, Size: 3413 bytes --]

      reply	other threads:[~2016-02-10 14:01 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-02-03 10:13 Woronicz, Bartosz ( NSN - PL/Wroclaw)
2016-02-03 10:28 ` Burton, Ross
2016-02-03 14:16   ` Woronicz, Bartosz ( NSN - PL/Wroclaw)
2016-02-03 15:40     ` Burton, Ross
2016-02-04 11:03       ` Woronicz, Bartosz ( NSN - PL/Wroclaw)
2016-02-03 11:05 ` Maciek Borzecki
2016-02-04 11:07   ` Woronicz, Bartosz ( NSN - PL/Wroclaw)
2016-02-08 13:20     ` Woronicz, Bartosz ( NSN - PL/Wroclaw)
2016-02-08 13:44       ` Maciek Borzecki
2016-02-09  8:37         ` Woronicz, Bartosz ( NSN - PL/Wroclaw)
2016-02-09  9:10           ` Burton, Ross
2016-02-09 13:51             ` Woronicz, Bartosz ( NSN - PL/Wroclaw)
2016-02-09 13:56               ` Burton, Ross
2016-02-10 14:00                 ` Woronicz, Bartosz ( NSN - PL/Wroclaw) [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=56BB4292.5080708@nokia.com \
    --to=bartosz.woronicz@nokia.com \
    --cc=ross.burton@intel.com \
    --cc=yocto@yoctoproject.org \
    --subject='Re: Where should I append Yocto bitbake task to create work folder symlink ?' \
    /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

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.