]> code.ossystems Code Review - openembedded-core.git/commitdiff
kernel: set COMPATIBLE_HOST to *-linux
authorRoss Burton <ross@burtonini.com>
Fri, 11 Dec 2020 16:09:22 +0000 (16:09 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 1 Jan 2021 11:55:26 +0000 (11:55 +0000)
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 <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit b1eeeab21a81990321468ddbdd1745ea24d1828d)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
meta/classes/kernel.bbclass
meta/recipes-kernel/linux/linux-dummy.bb

index 29afd791e995ccc89ca4e51cc01a69dec5155720..2a65c001d97ee465ed42eec57f285b5a64aa78b9 100644 (file)
@@ -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") }"
 
index 649fc04dd18e442d27634a89546d2210c1da36b9..95dc85ff2fccb93e12938f3f0c92cc5c1daccbd1 100644 (file)
@@ -26,7 +26,7 @@ DESCRIPTION_kernel-vmlinux = "Kernel vmlinux meta package"
 
 INHIBIT_DEFAULT_DEPS = "1"
 
-#COMPATIBLE_MACHINE = "your_machine"
+COMPATIBLE_HOST = ".*-linux"
 
 PR = "r1"