[oe-commits] [openembedded-core] 06/12: machine_dict: Add i686 to the ELF machine dictionary

git at git.openembedded.org git at git.openembedded.org
Sun Jan 19 23:51:12 UTC 2020


This is an automated email from the git hooks/post-receive script.

rpurdie pushed a commit to branch master
in repository openembedded-core.

commit e7862d2cdd478556ec0310d2b3c140da9cb2ff0b
Author: Alejandro Enedino Hernandez Samaniego <alejandro at enedino.org>
AuthorDate: Sat Jan 18 13:22:39 2020 -0800

    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 at enedino.org>
    Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
---
 meta/lib/oe/elf.py | 1 +
 1 file changed, 1 insertion(+)

diff --git a/meta/lib/oe/elf.py b/meta/lib/oe/elf.py
index 43c962c..2ed614f 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),

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Openembedded-commits mailing list