diff options
author | Ross Burton <ross@burtonini.com> | 2020-12-11 16:09:22 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2020-12-24 08:25:14 +0000 |
commit | 2d99b0993aa7a703c4fd6a3b7c0ddbaa28608aac (patch) | |
tree | b9a19be08403b89629e132239ee636a3ca7e3f12 | |
parent | 4f6358f50cfac9a72e5773b8035551153417285a (diff) | |
download | poky-2d99b0993aa7a703c4fd6a3b7c0ddbaa28608aac.tar.gz |
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>
-rw-r--r-- | meta/classes/kernel.bbclass | 2 | ||||
-rw-r--r-- | meta/recipes-kernel/linux/linux-dummy.bb | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/meta/classes/kernel.bbclass b/meta/classes/kernel.bbclass index 1a444efabf..2f1006ddf0 100644 --- a/meta/classes/kernel.bbclass +++ b/meta/classes/kernel.bbclass | |||
@@ -1,5 +1,7 @@ | |||
1 | inherit linux-kernel-base kernel-module-split | 1 | inherit linux-kernel-base kernel-module-split |
2 | 2 | ||
3 | COMPATIBLE_HOST = ".*-linux" | ||
4 | |||
3 | KERNEL_PACKAGE_NAME ??= "kernel" | 5 | KERNEL_PACKAGE_NAME ??= "kernel" |
4 | KERNEL_DEPLOYSUBDIR ??= "${@ "" if (d.getVar("KERNEL_PACKAGE_NAME") == "kernel") else d.getVar("KERNEL_PACKAGE_NAME") }" | 6 | KERNEL_DEPLOYSUBDIR ??= "${@ "" if (d.getVar("KERNEL_PACKAGE_NAME") == "kernel") else d.getVar("KERNEL_PACKAGE_NAME") }" |
5 | 7 | ||
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" | |||
26 | 26 | ||
27 | INHIBIT_DEFAULT_DEPS = "1" | 27 | INHIBIT_DEFAULT_DEPS = "1" |
28 | 28 | ||
29 | #COMPATIBLE_MACHINE = "your_machine" | 29 | COMPATIBLE_HOST = ".*-linux" |
30 | 30 | ||
31 | PR = "r1" | 31 | PR = "r1" |
32 | 32 | ||