summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb/cookerdata.py
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2022-02-17 11:59:02 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2022-02-21 23:37:26 +0000
commitf2fc11cad737f1da2cbee45c645e1b87225c85c7 (patch)
treefc8b685fdbae54ac79b3bcd7d7e3af8cdd5b0195 /bitbake/lib/bb/cookerdata.py
parent638869230fb038f630b9dbe64475fa3a1cecc1ed (diff)
downloadpoky-f2fc11cad737f1da2cbee45c645e1b87225c85c7.tar.gz
bitbake: data_smart: Add support to BB_RENAMED_VARIABLES for custom strings
Add support for custom strings in BB_RENAMED_VARIABLES and use this to show that BB_STAMP_WHITELIST and BB_STAMP_POLICY are no longer supported. (Bitbake rev: 0914011f7647571ab125bbddcd7d68e3da47226a) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/bb/cookerdata.py')
-rw-r--r--bitbake/lib/bb/cookerdata.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/bitbake/lib/bb/cookerdata.py b/bitbake/lib/bb/cookerdata.py
index 8426ed786f..ddf05b92ab 100644
--- a/bitbake/lib/bb/cookerdata.py
+++ b/bitbake/lib/bb/cookerdata.py
@@ -319,12 +319,14 @@ class CookerDataBuilder(object):
319 for v in renamedvars: 319 for v in renamedvars:
320 if d.getVar(v) != None or d.hasOverrides(v): 320 if d.getVar(v) != None or d.hasOverrides(v):
321 issues = True 321 issues = True
322 loginfo = {}
322 history = d.varhistory.get_variable_refs(v) 323 history = d.varhistory.get_variable_refs(v)
323 for h in history: 324 for h in history:
324 for line in history[h]: 325 for line in history[h]:
325 bb.erroronce('Variable %s has been renamed to %s (file: %s line: %s)' % (v, renamedvars[v], h, line)) 326 loginfo = {'file' : h, 'line' : line}
327 bb.data.data_smart._print_rename_error(v, loginfo, renamedvars)
326 if not history: 328 if not history:
327 bb.erroronce('Variable %s has been renamed to %s' % (v, renamedvars[v])) 329 bb.data.data_smart._print_rename_error(v, loginfo, renamedvars)
328 if issues: 330 if issues:
329 raise bb.BBHandledException() 331 raise bb.BBHandledException()
330 332