* Graceful continue if some recipe has error
@ 2015-02-16 17:05 Bipnesh, Abhinav (Abhinav)
2015-02-16 17:39 ` Paul Eggleton
0 siblings, 1 reply; 4+ messages in thread
From: Bipnesh, Abhinav (Abhinav) @ 2015-02-16 17:05 UTC (permalink / raw)
To: yocto
[-- Attachment #1: Type: text/plain, Size: 410 bytes --]
Hi,
We have written recipe for our application which reads some environment variables and follow a path. But if these variables are not set then recipe parsing results into error.
So I was looking if we can have some way for a graceful continuation. As we want if those variables are set then it bitbake should continue with rest of building.
So is there way we can achieve the same.
Thanks,
Abhinav
[-- Attachment #2: Type: text/html, Size: 770 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Graceful continue if some recipe has error
2015-02-16 17:05 Graceful continue if some recipe has error Bipnesh, Abhinav (Abhinav)
@ 2015-02-16 17:39 ` Paul Eggleton
2015-02-16 17:42 ` Bipnesh, Abhinav (Abhinav)
0 siblings, 1 reply; 4+ messages in thread
From: Paul Eggleton @ 2015-02-16 17:39 UTC (permalink / raw)
To: Bipnesh, Abhinav (Abhinav); +Cc: yocto
Hi Abhinav,
On Monday 16 February 2015 17:05:32 Bipnesh, Abhinav wrote:
> We have written recipe for our application which reads some environment
> variables and follow a path. But if these variables are not set then recipe
> parsing results into error. So I was looking if we can have some way for a
> graceful continuation. As we want if those variables are set then it
> bitbake should continue with rest of building. So is there way we can
> achieve the same.
Depends, how are you reading the variables? From python or shell?
Cheers,
Paul
--
Paul Eggleton
Intel Open Source Technology Centre
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Graceful continue if some recipe has error
2015-02-16 17:39 ` Paul Eggleton
@ 2015-02-16 17:42 ` Bipnesh, Abhinav (Abhinav)
2015-02-16 18:20 ` Paul Eggleton
0 siblings, 1 reply; 4+ messages in thread
From: Bipnesh, Abhinav (Abhinav) @ 2015-02-16 17:42 UTC (permalink / raw)
To: Paul Eggleton; +Cc: yocto
Hi,
I am using python function as below
python __anonymous () {
origenv = d.getVar("BB_ORIGENV", False)
. . .
}
Thanks,
Abhinav
-----Original Message-----
From: Paul Eggleton [mailto:paul.eggleton@linux.intel.com]
Sent: Monday, February 16, 2015 23:10
To: Bipnesh, Abhinav (Abhinav)
Cc: yocto@yoctoproject.org
Subject: Re: [yocto] Graceful continue if some recipe has error
Hi Abhinav,
On Monday 16 February 2015 17:05:32 Bipnesh, Abhinav wrote:
> We have written recipe for our application which reads some
> environment variables and follow a path. But if these variables are
> not set then recipe parsing results into error. So I was looking if we
> can have some way for a graceful continuation. As we want if those
> variables are set then it bitbake should continue with rest of
> building. So is there way we can achieve the same.
Depends, how are you reading the variables? From python or shell?
Cheers,
Paul
--
Paul Eggleton
Intel Open Source Technology Centre
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Graceful continue if some recipe has error
2015-02-16 17:42 ` Bipnesh, Abhinav (Abhinav)
@ 2015-02-16 18:20 ` Paul Eggleton
0 siblings, 0 replies; 4+ messages in thread
From: Paul Eggleton @ 2015-02-16 18:20 UTC (permalink / raw)
To: Bipnesh, Abhinav (Abhinav); +Cc: yocto
On Monday 16 February 2015 17:42:02 Bipnesh, Abhinav wrote:
> Paul Eggleton wrote:
> > On Monday 16 February 2015 17:05:32 Bipnesh, Abhinav wrote:
> > > We have written recipe for our application which reads some
> > > environment variables and follow a path. But if these variables are
> > > not set then recipe parsing results into error. So I was looking if we
> > > can have some way for a graceful continuation. As we want if those
> > > variables are set then it bitbake should continue with rest of
> > > building. So is there way we can achieve the same.
> >
> > Depends, how are you reading the variables? From python or shell?
>
> I am using python function as below
> python __anonymous () {
> origenv = d.getVar("BB_ORIGENV", False)
> . . .
> }
Presumably then you would do:
value = origenv.getVar("BAR", False)
if value:
# do something if set
else:
# do something if not set
?
Cheers,
Paul
--
Paul Eggleton
Intel Open Source Technology Centre
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2015-02-16 18:20 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-02-16 17:05 Graceful continue if some recipe has error Bipnesh, Abhinav (Abhinav)
2015-02-16 17:39 ` Paul Eggleton
2015-02-16 17:42 ` Bipnesh, Abhinav (Abhinav)
2015-02-16 18:20 ` Paul Eggleton
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.