]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core.git/commit
linux-yocto: Fix COMPATIBLE_MACHINE regex match
authorAndrei Gherzan <andrei.gherzan@huawei.com>
Thu, 25 Aug 2022 17:59:15 +0000 (19:59 +0200)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 30 Aug 2022 09:28:26 +0000 (10:28 +0100)
commit63db2c6baadb4b9aa0c8ae82a497f30840b3b347
treec28944f04a123a419715627f65d2bbd63139cd84
parentd035fd394fd2747ab4b75867af6123f3efb1990f
linux-yocto: Fix COMPATIBLE_MACHINE regex match

With the current regex expression, a machine that is not part of the
compatible could match the regex expression.

For example, consider the following COMPATIBLE_MACHINE:

COMPATIBLE_MACHINE = "qemuarm|qemuarm64"

A machine definition bringing in "qemuarm-foo" would match against the
COMPATIBLE_MACHINE pattern above (see base.bbclass for implementation
details).

Fix this by matching the start and the end of the string.

Signed-off-by: Andrei Gherzan <andrei.gherzan@huawei.com>
Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com>
meta/recipes-kernel/linux/linux-yocto-dev.bb
meta/recipes-kernel/linux/linux-yocto-rt_5.15.bb
meta/recipes-kernel/linux/linux-yocto-rt_5.19.bb
meta/recipes-kernel/linux/linux-yocto-tiny_5.15.bb
meta/recipes-kernel/linux/linux-yocto-tiny_5.19.bb
meta/recipes-kernel/linux/linux-yocto_5.15.bb
meta/recipes-kernel/linux/linux-yocto_5.19.bb