Yocto Project Discussions
 help / color / mirror / Atom feed
* RFC: Devtool support to read BB_ENV_EXTRAWHITE variables and parse the env variables same as bitbake
@ 2020-07-22 23:29 Chandana kalluri
  2020-07-23  4:05 ` [yocto] " Paul Eggleton
  0 siblings, 1 reply; 2+ messages in thread
From: Chandana kalluri @ 2020-07-22 23:29 UTC (permalink / raw)
  To: yocto@lists.yoctoproject.org, Paul Eggleton; +Cc: Mark Hatle

Hello,

I have a use case where the user passes path to devtool modify using TOPDIR. 
Ex. devtool modify linux-xlnx -n ${TOPDIR}/linux-xlnx

Since devtool doesn't evaluate TOPDIR as bitbake variable, during expansion it expands it as 
     devtool modify linux-xlnx -n /linux-xlnx

Can we add support to devtool that reads BB_ENV_EXTRAWHITE variable and parse the env variables same as bitbake ? 

Thanks,
Chandana


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [yocto] RFC: Devtool support to read BB_ENV_EXTRAWHITE variables and parse the env variables same as bitbake
  2020-07-22 23:29 RFC: Devtool support to read BB_ENV_EXTRAWHITE variables and parse the env variables same as bitbake Chandana kalluri
@ 2020-07-23  4:05 ` Paul Eggleton
  0 siblings, 0 replies; 2+ messages in thread
From: Paul Eggleton @ 2020-07-23  4:05 UTC (permalink / raw)
  To: Chandana kalluri; +Cc: yocto@lists.yoctoproject.org, Mark Hatle

Hi Chandana,

On Thursday, 23 July 2020 11:29:24 NZST Chandana kalluri wrote:
> I have a use case where the user passes path to devtool modify using TOPDIR.
> Ex. devtool modify linux-xlnx -n ${TOPDIR}/linux-xlnx
> 
> Since devtool doesn't evaluate TOPDIR as bitbake variable, during expansion
> it expands it as devtool modify linux-xlnx -n /linux-xlnx

Assuming you are quoting the command verbatim, the issue here is that the 
shell is evaluating TOPDIR, so devtool doesn't even get to see the reference. 
Granted, even if you use single quotes to prevent the shell expansion, devtool 
does not expand the variable reference; it could be made to fairly easily 
though.
 
> Can we add support to devtool that reads BB_ENV_EXTRAWHITE variable and
> parse the env variables same as bitbake ?

I can see how this might be related but it doesn't seem necessary for the 
expansion to work - it would only be needed if you wanted to pass in TOPDIR 
externally, but that would have other implications as well. Is that needed?

Cheers
Paul




^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2020-07-23  4:05 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-07-22 23:29 RFC: Devtool support to read BB_ENV_EXTRAWHITE variables and parse the env variables same as bitbake Chandana kalluri
2020-07-23  4:05 ` [yocto] " Paul Eggleton

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox