mirror of
https://git.yoctoproject.org/poky
synced 2026-04-13 23:02:30 +02:00
insane.bbclass: Fix incorrect getVar call
On a trace I was a bit puzzled why getVar was making 180 calls to len(d). This is an expensive operation that should be very rarely called and certainly not by getVar. In perl's do_package it was resulting in ~1.5 million function calls from those 180 cases. Ultimately this typo was why. Lets fix it and save the CPU cyles. (From OE-Core rev: a8ba821d0002e4395fc5c80649fe14f93a7971fe) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
@@ -404,7 +404,7 @@ def package_qa_check_arch(path,name,d, elf, messages):
|
||||
|
||||
target_os = d.getVar('TARGET_OS', True)
|
||||
target_arch = d.getVar('TARGET_ARCH', True)
|
||||
provides = d.getVar('PROVIDES', d, True)
|
||||
provides = d.getVar('PROVIDES', True)
|
||||
bpn = d.getVar('BPN', True)
|
||||
|
||||
# FIXME: Cross package confuse this check, so just skip them
|
||||
|
||||
Reference in New Issue
Block a user