Skip to content
Snippets Groups Projects
Verified Commit cc04a99a authored by Andrei Gherzan's avatar Andrei Gherzan :penguin:
Browse files

linux-oniro: Fix COMPATIBLE_MACHINE regex match


With the current regex expression a machine that is not part of the
compatible one would match if it is a substring of one of the machines
part of the regex expression.

For example "qemuarm64-efi" will match
"qemuarm|qemuarm64|qemux86|qemux86-64|qemuriscv64|qemuriscv32|qemu-generic-arm64".

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

Signed-off-by: Andrei Gherzan's avatarAndrei Gherzan <andrei.gherzan@huawei.com>
parent bb2fa7c7
No related branches found
No related tags found
No related merge requests found
This commit is part of merge request !250. Comments created here will be created in the context of that merge request.
...@@ -32,7 +32,7 @@ PROVIDES="linux-oniro virtual/kernel" ...@@ -32,7 +32,7 @@ PROVIDES="linux-oniro virtual/kernel"
KCONF_BSP_AUDIT_LEVEL = "1" KCONF_BSP_AUDIT_LEVEL = "1"
COMPATIBLE_MACHINE = "qemuarm|qemuarm64|qemux86|qemux86-64|qemuriscv64|qemuriscv32|qemu-generic-arm64" COMPATIBLE_MACHINE = "^(qemuarm|qemuarm64|qemux86|qemux86-64|qemuriscv64|qemuriscv32|qemu-generic-arm64)$"
# Functionality flags # Functionality flags
KERNEL_EXTRA_FEATURES ?= "features/netfilter/netfilter.scc" KERNEL_EXTRA_FEATURES ?= "features/netfilter/netfilter.scc"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment