diff options
author | Kevin Tian <kevin.tian@intel.com> | 2010-09-25 14:54:44 +0800 |
---|---|---|
committer | Richard Purdie <rpurdie@linux.intel.com> | 2010-09-29 16:42:15 +0100 |
commit | 22cbcd964fceb43c89142be77db8950425b4303e (patch) | |
tree | 34879ea75a7e06fddd6c174820ec3f715d72abdf /meta-moblin/packages/moblin-web-browser | |
parent | 5f289ac80f81681f1d31e8637ceeeb5217aa40ca (diff) | |
download | openembedded-core-22cbcd964fceb43c89142be77db8950425b4303e.tar.gz openembedded-core-22cbcd964fceb43c89142be77db8950425b4303e.tar.bz2 openembedded-core-22cbcd964fceb43c89142be77db8950425b4303e.tar.xz openembedded-core-22cbcd964fceb43c89142be77db8950425b4303e.zip |
update-alternative.bbclass: add batch alternatives support
With new batch ability, we can use below simple 2 lines for multiple alternatives
updates:
ALTERNATIVE_LINKS = "${bindir}/cmd1 {sbindir}/cmd2 ..."
ALTERNATIVE_PRIORITY = "100"
Then for each command "/path/cmd" listed in ALTERNATIVE_LINKS, below is done
automatically:
${D}/path/cmd is renamed to ${D}/path/cmd.{PN}
a new alternative named 'cmd' is created which:
links /path/cmd to /path/cmd.{PN} with priority specified in ALTERNATIVE_PRIORITY
This way the recipe with multiple alternatives could be simplified a lot. There
are still some cases where above assumptions may break, but I expect more recipes
should benefit from this simple enhancement
Fix [BUGID #257]
Signed-off-by: Kevin Tian <kevin.tian@intel.com>
Diffstat (limited to 'meta-moblin/packages/moblin-web-browser')
0 files changed, 0 insertions, 0 deletions