Re: [yocto] Where should I append Yocto bitbake task to create work folder symlink ?

2016-02-10 Thread Woronicz, Bartosz ( NSN - PL/Wroclaw)
On 09.02.2016 14:56, EXT Burton, Ross wrote: On 9 February 2016 at 13:51, Woronicz, Bartosz ( NSN - PL/Wroclaw) > wrote: Here is the whole bbclass/: / DESCRIPTION = "Creates symlink to the latest version workdir

Re: [yocto] Where should I append Yocto bitbake task to create work folder symlink ?

2016-02-09 Thread Woronicz, Bartosz ( NSN - PL/Wroclaw)
On 08.02.2016 14:44, EXT Maciek Borzecki wrote: On pon, 2016-02-08 at 14:20 +0100, Woronicz, Bartosz ( NSN - PL/Wroclaw) wrote: The problem is, it doesn't doit delirebately, when I run bitbake -f -c latest_link myrecipe , it works when the process is in the tasks batch running bitbake

Re: [yocto] Where should I append Yocto bitbake task to create work folder symlink ?

2016-02-09 Thread Burton, Ross
On 9 February 2016 at 08:37, Woronicz, Bartosz ( NSN - PL/Wroclaw) < bartosz.woron...@nokia.com> wrote: > Ok, but I don't want to run it everytime, just after the do_unpack. What I > need to put it in requirements for each recipe ? > Maybe something like > > do_unpack[require] = "latest_link" >

Re: [yocto] Where should I append Yocto bitbake task to create work folder symlink ?

2016-02-09 Thread Burton, Ross
On 9 February 2016 at 13:51, Woronicz, Bartosz ( NSN - PL/Wroclaw) < bartosz.woron...@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 >

Re: [yocto] Where should I append Yocto bitbake task to create work folder symlink ?

2016-02-09 Thread Woronicz, Bartosz ( NSN - PL/Wroclaw)
Cheers, mate! That solves my issue (but with small fix). /do_unpack[postfuncs] += "do_latest_link" /instead/ //do_unpack[postfuncs] += "latest_link" Because, without "do_" it says WARNING: Function latest_link doesn't exist /Here is the whole bbclass/: / DESCRIPTION = "Creates symlink to

Re: [yocto] Where should I append Yocto bitbake task to create work folder symlink ?

2016-02-08 Thread Woronicz, Bartosz ( NSN - PL/Wroclaw)
ttp://stackoverflow.com/questions/35158764/where-should-i-append-yocto-bitbake-task-to- create-work-folder-symlink Put that into a class in your layer, ex. latest-link.bbclass (untested): do_latest_link() { if [ -n "${WORKDIR}" ]; then linkname="$(dirname ${WORKDIR})/latest&

Re: [yocto] Where should I append Yocto bitbake task to create work folder symlink ?

2016-02-08 Thread Maciek Borzecki
On pon, 2016-02-08 at 14:20 +0100, Woronicz, Bartosz ( NSN - PL/Wroclaw) wrote: > The problem is, it doesn't doit delirebately, > > when I run > > bitbake -f -c latest_link myrecipe , it works > > when the process is in the tasks batch running > bitbake myrecipe > it doesn't > What am I doing

Re: [yocto] Where should I append Yocto bitbake task to create work folder symlink ?

2016-02-04 Thread Woronicz, Bartosz ( NSN - PL/Wroclaw)
4/where-should-i-append-yocto-bitbake-task-to- create-work-folder-symlink Put that into a class in your layer, ex. latest-link.bbclass (untested): do_latest_link() { if [ -n "${WORKDIR}" ]; then linkname="$(dirname ${WORKDIR})/latest"

Re: [yocto] Where should I append Yocto bitbake task to create work folder symlink ?

2016-02-04 Thread Woronicz, Bartosz ( NSN - PL/Wroclaw)
I will check that out, thanks! Kind regards, Bartosz Woronicz Engineer, Software Configuration (SCM) NSN - PL/Wroclaw On 03.02.2016 16:40, EXT Burton, Ross wrote: On 3 February 2016 at 14:16, Woronicz, Bartosz ( NSN - PL/Wroclaw)

[yocto] Where should I append Yocto bitbake task to create work folder symlink ?

2016-02-03 Thread Woronicz, Bartosz ( NSN - PL/Wroclaw)
ask should I append, extend ? Optionally, I would like to have that for all packages or at least packages in my meta. P.S. I asked the same question here: http://stackoverflow.com/questions/35158764/where-should-i-append-yocto-bitbake-task-to-create-work-folder-symlink -- Kind regards, Bart

Re: [yocto] Where should I append Yocto bitbake task to create work folder symlink ?

2016-02-03 Thread Maciek Borzecki
the same question here:  > http://stackoverflow.com/questions/35158764/where-should-i-append-yocto-bitbake-task-to- > create-work-folder-symlink > Put that into a class in your layer, ex. latest-link.bbclass (untested): do_latest_link() { if [ -n "${WORKDIR}" ]; then

Re: [yocto] Where should I append Yocto bitbake task to create work folder symlink ?

2016-02-03 Thread Burton, Ross
On 3 February 2016 at 10:13, Woronicz, Bartosz ( NSN - PL/Wroclaw) < bartosz.woron...@nokia.com> wrote: > Let's say I have my package at > > host-64/tmp/work/x86_64-poky-linux/mypackage/1.2.3-r4/ > > I would like to have symlink created > >

Re: [yocto] Where should I append Yocto bitbake task to create work folder symlink ?

2016-02-03 Thread Woronicz, Bartosz ( NSN - PL/Wroclaw)
On 03.02.2016 11:28, EXT Burton, Ross wrote: On 3 February 2016 at 10:13, Woronicz, Bartosz ( NSN - PL/Wroclaw) > wrote: Let's say I have my package at host-64/tmp/work/x86_64-poky-linux/mypackage/1.2.3-r4/ I would

Re: [yocto] Where should I append Yocto bitbake task to create work folder symlink ?

2016-02-03 Thread Burton, Ross
On 3 February 2016 at 14:16, Woronicz, Bartosz ( NSN - PL/Wroclaw) < bartosz.woron...@nokia.com> wrote: > But I need to the sysroot cleanup deliberately, right ? > No, that happens on startup (in master and the jethro release). Ross -- ___ yocto