Skip to content
Snippets Groups Projects
Commit 4db59956 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>
Signed-off-by: default avatarLuca Seritan <luca.seritan@huawei.com>
parent ea229ea1
No related branches found
No related tags found
1 merge request!250Add support for qemuarm/64 machines with EFI
......@@ -32,7 +32,7 @@ PROVIDES="linux-oniro virtual/kernel"
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
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