Openembedded Core Discussions
 help / color / mirror / Atom feed
* recipe using environment variable does not refresh / rebuild
@ 2018-02-01 14:46 Piotr Lewicki
  2018-02-01 14:50 ` Burton, Ross
  0 siblings, 1 reply; 4+ messages in thread
From: Piotr Lewicki @ 2018-02-01 14:46 UTC (permalink / raw)
  To: openembedded-core

Hi,

I have a problem with forcing rebuild of the recipe depending on the 
environment variable.

In my recipe I have an anonymous python function that obtains the env 
variable and depending on it sets some other internal variables (needed 
by swupdate recipe):


python() {
     origenv = d.getVar("BB_ORIGENV", False)
     u_boot_enabled = origenv.getVar("ADD_UBOOT_TO_UPDATE", False)

     if u_boot_enabled == None:
         bb.warn("Not adding u-boot to the image")
     else:
         bb.warn("Adding u-boot to the image")
         d.appendVar("SWUPDATE_IMAGES", " u-boot.imx")
         d.setVarFlag("SWUPDATE_IMAGES_NOAPPEND_MACHINE", "u-boot.imx", "1")
}


My issue is that there is no difference when I either set or unset my 
environment variable "ADD_UBOOT_TO_UPDATE".


Can you point me a solution how I could force checking this variable and 
rerunning/rebuilding the recipe?


Thanks,

Piotr



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

end of thread, other threads:[~2018-02-01 15:09 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-02-01 14:46 recipe using environment variable does not refresh / rebuild Piotr Lewicki
2018-02-01 14:50 ` Burton, Ross
2018-02-01 15:00   ` Piotr Lewicki
2018-02-01 15:09     ` Richard Purdie

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