summaryrefslogtreecommitdiffstats
path: root/meta
diff options
context:
space:
mode:
authorRoss Burton <ross@burtonini.com>2020-12-11 16:09:22 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2021-01-01 11:55:35 +0000
commit7a36e544382ea770b5bd7172b35a0d884694d5bd (patch)
tree2f47b9f7edd55a379db22046e72087607f9fb018 /meta
parent7096d93b337898448a1e24dfcb7ba88396794e39 (diff)
downloadpoky-7a36e544382ea770b5bd7172b35a0d884694d5bd.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: 3f08f5b7068ecd3a59fc30dd90515df314a94f84) 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> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-rw-r--r--meta/classes/kernel.bbclass2
-rw-r--r--meta/recipes-kernel/linux/linux-dummy.bb2
2 files changed, 3 insertions, 1 deletions
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 @@
1inherit linux-kernel-base kernel-module-split 1inherit linux-kernel-base kernel-module-split
2 2
3COMPATIBLE_HOST = ".*-linux"
4
3KERNEL_PACKAGE_NAME ??= "kernel" 5KERNEL_PACKAGE_NAME ??= "kernel"
4KERNEL_DEPLOYSUBDIR ??= "${@ "" if (d.getVar("KERNEL_PACKAGE_NAME") == "kernel") else d.getVar("KERNEL_PACKAGE_NAME") }" 6KERNEL_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
27INHIBIT_DEFAULT_DEPS = "1" 27INHIBIT_DEFAULT_DEPS = "1"
28 28
29#COMPATIBLE_MACHINE = "your_machine" 29COMPATIBLE_HOST = ".*-linux"
30 30
31PR = "r1" 31PR = "r1"
32 32