Skip to contentSkip to conversation

u-boot-qoriq: Fix python function for fsl-lsch2-32b arch

PATCH New Fabio Berton 1 participant 1 message Jan 13, 2017

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 u-boot-qoriq: Fix python function for fsl-lsch2-32b arch

Add missing argument in function getVar() to avoid error:

Exception: TypeError: getVar() missing 1 required positional argument: 'expand'

---
 recipes-bsp/u-boot/u-boot-qoriq_2016.09.bb | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
recipes-bsp/u-boot/u-boot-qoriq_2016.09.bb +3 -3
index 0b392754..56002146 100644
@@ -43,10 +43,10 @@ python () {
     elif "fsl-lsch2-32b:" in arch:
         if not "lib64" in ml:
             raise bb.parse.SkipPackage("Building the u-boot for this arch requires multilib to be enabled")
-        sys_multilib = 'aarch64' + d.getVar('TARGET_VENDOR') + 'mllib64-linux'
+        sys_multilib = 'aarch64' + d.getVar('TARGET_VENDOR', False) + 'mllib64-linux'
         d.setVar('DEPENDS_append', ' lib64-gcc-cross-aarch64 lib64-libgcc')
-        d.setVar('PATH_append', ':' + d.getVar('STAGING_BINDIR_NATIVE') + '/' + sys_multilib)
-        d.setVar('TOOLCHAIN_OPTIONS_append', '/../lib64-' + d.getVar("MACHINE"))
+        d.setVar('PATH_append', ':' + d.getVar('STAGING_BINDIR_NATIVE', False) + '/' + sys_multilib)
+        d.setVar('TOOLCHAIN_OPTIONS_append', '/../lib64-' + d.getVar("MACHINE", False))
         d.setVar("WRAP_TARGET_PREFIX", sys_multilib + '-')
 }
 
Signature · 1 line
2.11.0