Suppose we build software for x86 targets on x86 build hosts. There are use-cases when it is not enough to specify x86 as a kernel architecture. It is necessary to go one step further and to specify proper x86 sub-architecture (i386 or x86_64) of the target system.
This patch modifies kernel-arch.bbclass in the following way: - adds x86_64 to the list of valid architectures - differentiates between i386 and x86_64 sub-architectures in map_kernel_arch Signed-off-by: Sergey Matyukevich <[email protected]> --- meta/classes/kernel-arch.bbclass | 6 ++++-- 1 files changed, 4 insertions(+), 2 deletions(-) diff --git a/meta/classes/kernel-arch.bbclass b/meta/classes/kernel-arch.bbclass index b3b71ba..3e29f45 100644 --- a/meta/classes/kernel-arch.bbclass +++ b/meta/classes/kernel-arch.bbclass @@ -5,7 +5,7 @@ # valid_archs = "alpha cris ia64 \ - i386 x86 \ + i386 x86 x86_64 \ m68knommu m68k ppc powerpc powerpc64 ppc64 \ sparc sparc64 \ arm aarch64 \ @@ -20,7 +20,9 @@ def map_kernel_arch(a, d): valid_archs = d.getVar('valid_archs', True).split() - if re.match('(i.86|athlon|x86.64)$', a): return 'x86' + if re.match('athlon$', a): return 'x86' + elif re.match('i.86$', a): return 'i386' + elif re.match('x86.64$', a): return 'x86_64' elif re.match('armeb$', a): return 'arm' elif re.match('aarch64$', a): return 'arm64' elif re.match('mips(el|64|64el)$', a): return 'mips' -- 1.7.2.5 _______________________________________________ Openembedded-core mailing list [email protected] http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core
