Skip to content
Commit 63db2c6b authored by Andrei Gherzan's avatar Andrei Gherzan Committed by Richard Purdie
Browse files

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: default avatarAndrei Gherzan <andrei.gherzan@huawei.com>
Signed-off-by: default avatarLuca Ceresoli <luca.ceresoli@bootlin.com>
parent d035fd39
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment