From: Ross Burton Date: Fri, 11 Dec 2020 16:09:22 +0000 (+0000) Subject: kernel: set COMPATIBLE_HOST to *-linux X-Git-Tag: 2020-04.5-dunfell~48 X-Git-Url: https://code.ossystems.io/gitweb?a=commitdiff_plain;h=3f08f5b7068ecd3a59fc30dd90515df314a94f84;p=openembedded-core.git kernel: set COMPATIBLE_HOST to *-linux The target system triple contains whether the target is Linux or not, so use it to avoid situations where you can attempt to build a kernel for systems which don't support Linux. Signed-off-by: Ross Burton Signed-off-by: Richard Purdie (cherry picked from commit b1eeeab21a81990321468ddbdd1745ea24d1828d) Signed-off-by: Steve Sakoman --- diff --git a/meta/classes/kernel.bbclass b/meta/classes/kernel.bbclass index 29afd791e9..2a65c001d9 100644 --- a/meta/classes/kernel.bbclass +++ b/meta/classes/kernel.bbclass @@ -1,5 +1,7 @@ inherit linux-kernel-base kernel-module-split +COMPATIBLE_HOST = ".*-linux" + KERNEL_PACKAGE_NAME ??= "kernel" KERNEL_DEPLOYSUBDIR ??= "${@ "" if (d.getVar("KERNEL_PACKAGE_NAME") == "kernel") else d.getVar("KERNEL_PACKAGE_NAME") }" diff --git a/meta/recipes-kernel/linux/linux-dummy.bb b/meta/recipes-kernel/linux/linux-dummy.bb index 649fc04dd1..95dc85ff2f 100644 --- a/meta/recipes-kernel/linux/linux-dummy.bb +++ b/meta/recipes-kernel/linux/linux-dummy.bb @@ -26,7 +26,7 @@ DESCRIPTION_kernel-vmlinux = "Kernel vmlinux meta package" INHIBIT_DEFAULT_DEPS = "1" -#COMPATIBLE_MACHINE = "your_machine" +COMPATIBLE_HOST = ".*-linux" PR = "r1"