[yocto] Where should I append Yocto bitbake task to create work folder symlink ?
Burton, Ross
ross.burton at intel.com
Tue Feb 9 05:56:22 PST 2016
On 9 February 2016 at 13:51, Woronicz, Bartosz ( NSN - PL/Wroclaw) <
bartosz.woronicz at 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.yoctoproject.org/pipermail/yocto/attachments/20160209/8e8e0ee9/attachment.html>
More information about the yocto
mailing list