remaining recipes: fix build issue due to bb.data.* deprecation
PATCH 1/1 remaining recipes: fix build issue due to bb.data.* deprecation
From: Denys Dmytriyenko <[email protected]>
Causes following error:
Exception: AttributeError: module 'bb.data' has no attribute 'getVar'
Signed-off-by Denys Dmytriyenko <[email protected]>
--- recipes-bsp/ipumm-fw/ipumm-fw_git.bb | 2 +- .../codec-engine/ti-codecs-omap3530_4.00.00.00.bb | 46 +++++++++++----------- recipes-ti/includes/ti-unpack.inc | 12 +++--- 3 files changed, 30 insertions(+), 30 deletions(-)
recipes-bsp/ipumm-fw/ipumm-fw_git.bb +1 -1
@@ -1,5 +1,5 @@ python __anonymous() { - features = bb.data.getVar("MACHINE_FEATURES", d, 1) + features = d.getVar("MACHINE_FEATURES", d, 1) if not features: return if "mmip" not in features:
recipes-ti/codec-engine/ti-codecs-omap3530_4.00.00.00.bb +23 -23
72 lines not on this page · raw message
recipes-ti/includes/ti-unpack.inc +6 -6
@@ -29,21 +29,21 @@ python ti_bin_do_unpack() { localdata = bb.data.createCopy(d) bb.data.update_data(localdata) - binfile = bb.data.getVar('BINFILE', localdata) + binfile = d.getVar('BINFILE', localdata) binfile = bb.data.expand(binfile, localdata) # Change to the working directory save_cwd = os.getcwd() - workdir = bb.data.getVar('WORKDIR', localdata) + workdir = d.getVar('WORKDIR', localdata) workdir = bb.data.expand(workdir, localdata) os.chdir(workdir) # Get unpack args - arg_string = bb.data.getVar('TI_BIN_UNPK_ARGS', localdata) + arg_string = d.getVar('TI_BIN_UNPK_ARGS', localdata) arg_string = bb.data.expand(arg_string, localdata) # Get unpack commands - cmd_string = bb.data.getVar('TI_BIN_UNPK_CMDS', localdata) + cmd_string = d.getVar('TI_BIN_UNPK_CMDS', localdata) cmd_list = cmd_string.split( ":" ) # Make the InstallJammer binary executable so we can run it
@@ -61,14 +61,14 @@ python ti_bin_do_unpack() { f = os.popen(filename,'w') for cmd in cmd_list: if cmd == "workdir": - wdext = bb.data.getVar('TI_BIN_UNPK_WDEXT', localdata) + wdext = d.getVar('TI_BIN_UNPK_WDEXT', localdata) wdext = bb.data.expand(wdext, localdata) cmd = workdir+wdext f.write(cmd+'\n'); f.close() # Expand the tarball that was created if required - tarfile = bb.data.getVar('TARFILE', localdata) + tarfile = d.getVar('TARFILE', localdata) if bool(tarfile) == True: tarfile = bb.data.expand(tarfile, localdata) tcmd = 'tar x --no-same-owner -f %s -C %s' % (tarfile, workdir)
Signature · 1 line
2.7.4