[OE-core] [PATCH] kernel-arch.bbclass: Allow 'baremetal' CPUs
Juro Bystricky
juro.bystricky at intel.com
Wed Sep 9 01:19:03 UTC 2015
Avoid "ERROR: cannot map <cpu> to a linux kernel architecture"
Not being able to map a CPU to a kernel architecture should not be treated as
an error when building baremetal toolchains for CPU <cpu> which does not have
a kernel source tree.
Rather then individually enumerating each additional (baremetal) CPU, allow them all.
This way the kernel-arch.bbclass does not need to be modified each time a support
for a new baremetal CPU is added.
Signed-off-by: Juro Bystricky <juro.bystricky at intel.com>
---
meta/classes/kernel-arch.bbclass | 1 +
1 file changed, 1 insertion(+)
diff --git a/meta/classes/kernel-arch.bbclass b/meta/classes/kernel-arch.bbclass
index 211b72b..3ffe47c 100644
--- a/meta/classes/kernel-arch.bbclass
+++ b/meta/classes/kernel-arch.bbclass
@@ -31,6 +31,7 @@ def map_kernel_arch(a, d):
elif re.match('microblazee[bl]', a): return 'microblaze'
elif a in valid_archs: return a
else:
+ if d.getVar("TCLIBC", True) == "baremetal": return a;
bb.error("cannot map '%s' to a linux kernel architecture" % a)
export ARCH = "${@map_kernel_arch(d.getVar('TARGET_ARCH', True), d)}"
--
1.9.1
More information about the Openembedded-core
mailing list