All of lore.kernel.org
 help / color / mirror / Atom feed
* Custom variable value: (OVERRIDES?)
@ 2020-04-02 15:34 Mauro Ziliani
  2020-04-03 11:37 ` Duy
  2020-04-05  7:16 ` [bitbake-devel] " Richard Purdie
  0 siblings, 2 replies; 3+ messages in thread
From: Mauro Ziliani @ 2020-04-02 15:34 UTC (permalink / raw)
  To: bitbake-devel

Hi all.

I don't understand how can I change a the value of a variable inside a 
.bb file

I do this work

if MYVAR is empty I need to install default.txt in /etc

if MYVAR contains "white" i need to install white.txt in /etc


So I extend myreciped.bb with this file


myrecipe.bbappend

MYVAR = "default.txt"

MYVAR_white = "white.txt"


do_install_append() {

     install -m 0755 -d ${D}/etc

     install -m 0644 ${MYVAR}    ${D}/etc/value

}


In conf/local.conf I put

MYVAR_pn-myrecipe = "white"


But nothing works as I expect.

Where is my mistakes?


Best regards,

   MZ


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

end of thread, other threads:[~2020-04-05  7:17 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-04-02 15:34 Custom variable value: (OVERRIDES?) Mauro Ziliani
2020-04-03 11:37 ` Duy
2020-04-05  7:16 ` [bitbake-devel] " Richard Purdie

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.