[yocto] Best practices for tokens/passwords that can't be versioned
Erik Botö
erik.boto at gmail.com
Tue Dec 11 04:08:48 PST 2018
On Tue, Dec 11, 2018 at 12:55 PM Alan Martinovic
<alan.martinovic at senic.com> wrote:
> Seems like conf/local.conf could also offer a solution given that it's
> a temporary
> thing (per build setup), but didn't yet figure out a good mechanism.
You could have a variable in the recipe and override that value in local.conf.
Let's say your recipe is called myexample_git.bb in which you add
something like this:
MYSECRETKEY ?= ""
Then this could be assigned from local.conf using something like:
MYSECRETKEY_pn-myexample = "super secret"
Cheers,
Erik
More information about the yocto
mailing list