Skip to contentSkip to conversation

Fix sanity checking ELF size determination

PATCH New Mark Hatle 1 participant 2 messages Mar 3, 2011

lore
Share & tools
lore

Mark Hatle

author
#0 lore raw

cover Fix sanity checking ELF size determination

Fix the ELF size determination during sanity checking.

Pull URL: git://git.pokylinux.org/poky-contrib.git
Branch: mhatle/bernard/fixes
Browse: http://git.pokylinux.org/cgit.cgi/poky-contrib/log/?h=mhatle/bernard/fixes

Thanks,
Mark Hatle <[email protected]>
---

Mark Hatle (1):
qa.py: Fix a typo when evaluating bitsize

 meta/lib/oe/qa.py |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
Signature · 1 line
1.7.4
author
#1 lore raw

PATCH 1/1 qa.py: Fix a typo when evaluating bitsize

This should be setting a variable, not performing a comparison.

---
 meta/lib/oe/qa.py |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
meta/lib/oe/qa.py +2 -2
index 7adf4d0..d380012 100644
@@ -40,9 +40,9 @@ class ELFFile:
         self.my_assert(self.data[3], 'F')
         if self.bits == 0:
             if self.data[ELFFile.EI_CLASS] == chr(ELFFile.ELFCLASS32):
-                self.bits == 32
+                self.bits = 32
             elif self.data[ELFFile.EI_CLASS] == chr(ELFFile.ELFCLASS64):
-                self.bits == 64
+                self.bits = 64
             else:
                 # Not 32-bit or 64.. lets assert
                 raise Exception("ELF but not 32 or 64 bit.")
Signature · 1 line
1.7.4