mirror of
https://git.yoctoproject.org/git/poky
synced 2026-01-01 13:58:04 +00:00
qa.py: Fix a typo when evaluating bitsize
This should be setting a variable, not performing a comparison. (From OE-Core rev: cbe1b8277c610e8e31d1270757877300532bed56) Signed-off-by: Mark Hatle <mark.hatle@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
parent
e81957973d
commit
091ace83f8
|
|
@ -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.")
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user