]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core.git/commit
update-alternatives: Simplfy variable dependency logic
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 4 Jun 2025 15:56:25 +0000 (16:56 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 5 Jun 2025 20:19:08 +0000 (21:19 +0100)
commitbd8fc4c59a137a37bd7a54f398949617982d447e
treed2d8b40efeaa16b715a6957e76f889cd83e2b139
parent890041f5ed06be1c0a655030af35484d98fe3e7a
update-alternatives: Simplfy variable dependency logic

When looking at bitbake parsing speed issues, I noticed a lot of weird looking
variables from the update-alternatives class. It is possible this was written
before variable dependencies could handle flags. It can handle flags now so
simplfy the code to take advantage of that and avoid the indirection variables.

The win here is a significant reduction in the number of variables, which
in turn significantly reduces the looping bitbake's taskhash calculation code
needs to do.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes-recipe/update-alternatives.bbclass