mirror of
https://git.yoctoproject.org/poky
synced 2026-06-02 13:29:49 +00:00
bitbake: event: Fix broken builds when multiconfig has a hyphen in the name
5f7fdf7b2d ("bitbake: event: Prevent bitbake from executing event
handler for wrong multiconfig target") broke multiconfig builds contain
a hyphen, since it's attempt to use the multiconfig as part of a
function name and python functions are not allowed to contain a hyphen.
Rework the bitbake multiconfig test to test a multiconfig with a hyphen
and one with an underscore to validate this doesn't break in the future.
(Bitbake rev: c3168df330a4563cbd03ba74de55a22217d823ed)
Signed-off-by: Joshua Watt <JPEWhacker@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
90e5cce0e3
commit
40f5a289d5
@@ -1 +1 @@
|
||||
do_install[mcdepends] = "mc:mc1:mc2:a1:do_build"
|
||||
do_install[mcdepends] = "mc:mc-1:mc_2:a1:do_build"
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
python () {
|
||||
if d.getVar("BB_CURRENT_MC") == "mc1":
|
||||
bb.fatal("Multiconfig is mc1")
|
||||
if d.getVar("BB_CURRENT_MC") == "mc-1":
|
||||
bb.fatal("Multiconfig is mc-1")
|
||||
}
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
python () {
|
||||
if d.getVar("BB_CURRENT_MC") == "mc2":
|
||||
bb.fatal("Multiconfig is mc2")
|
||||
if d.getVar("BB_CURRENT_MC") == "mc_2":
|
||||
bb.fatal("Multiconfig is mc_2")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user