From 4db59956c0511c976a1575e9778ca0f555ae5cad Mon Sep 17 00:00:00 2001 From: Andrei Gherzan <andrei.gherzan@huawei.com> Date: Wed, 10 Aug 2022 12:48:00 +0200 Subject: [PATCH] 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 <andrei.gherzan@huawei.com> Signed-off-by: Luca Seritan <luca.seritan@huawei.com> --- meta-oniro-core/recipes-kernel/linux/linux-oniro_5.10.bb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meta-oniro-core/recipes-kernel/linux/linux-oniro_5.10.bb b/meta-oniro-core/recipes-kernel/linux/linux-oniro_5.10.bb index 6029e0f8..9b7181a2 100644 --- a/meta-oniro-core/recipes-kernel/linux/linux-oniro_5.10.bb +++ b/meta-oniro-core/recipes-kernel/linux/linux-oniro_5.10.bb @@ -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" -- GitLab