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.

(From OE-Core rev: b1eeeab21a81990321468ddbdd1745ea24d1828d)

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Ross Burton 2020-12-11 16:09:22 +00:00 committed by Richard Purdie
parent 4f6358f50c
commit 2d99b0993a
2 changed files with 3 additions and 1 deletions

View 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") }"

View 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"