summaryrefslogtreecommitdiffstats
path: root/meta/lib/oe
diff options
context:
space:
mode:
authorAlejandro Enedino Hernandez Samaniego <alejandro@enedino.org>2020-01-18 13:22:39 -0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2020-01-19 23:49:15 +0000
commite7862d2cdd478556ec0310d2b3c140da9cb2ff0b (patch)
tree149f804be232fc86bf2f047107d5d750c526c115 /meta/lib/oe
parent2b2ebb11da16975e3b0cba7854c3cfe54e0305a3 (diff)
downloadopenembedded-core-contrib-e7862d2cdd478556ec0310d2b3c140da9cb2ff0b.tar.gz
machine_dict: Add i686 to the ELF machine dictionary
An error like the following is thrown when building baremetal applications on some x86 architectures: (machine, osabi, abiversion, littleendian, bits) \ = oe.elf.machine_dict(d)[target_os][target_arch] Exception: KeyError: i686 Since the i686 (target_arch) key does not exist in the dictionary. Add the key to fix the error. Signed-off-by: Alejandro Enedino Hernandez Samaniego <alejandro@enedino.org> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/lib/oe')
-rw-r--r--meta/lib/oe/elf.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/meta/lib/oe/elf.py b/meta/lib/oe/elf.py
index 43c962c697..2ed614f652 100644
--- a/meta/lib/oe/elf.py
+++ b/meta/lib/oe/elf.py
@@ -15,6 +15,7 @@ def machine_dict(d):
"aarch64" : (183, 0, 0, True, 64),
"aarch64_be" :(183, 0, 0, False, 64),
"i586" : (3, 0, 0, True, 32),
+ "i686" : (3, 0, 0, True, 32),
"x86_64": (62, 0, 0, True, 64),
"epiphany": (4643, 0, 0, True, 32),
"lm32": (138, 0, 0, False, 32),