From f2fc11cad737f1da2cbee45c645e1b87225c85c7 Mon Sep 17 00:00:00 2001 From: Richard Purdie Date: Thu, 17 Feb 2022 11:59:02 +0000 Subject: 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 --- bitbake/lib/bb/cookerdata.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'bitbake/lib/bb/cookerdata.py') 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): for v in renamedvars: if d.getVar(v) != None or d.hasOverrides(v): issues = True + loginfo = {} history = d.varhistory.get_variable_refs(v) for h in history: for line in history[h]: - bb.erroronce('Variable %s has been renamed to %s (file: %s line: %s)' % (v, renamedvars[v], h, line)) + loginfo = {'file' : h, 'line' : line} + bb.data.data_smart._print_rename_error(v, loginfo, renamedvars) if not history: - bb.erroronce('Variable %s has been renamed to %s' % (v, renamedvars[v])) + bb.data.data_smart._print_rename_error(v, loginfo, renamedvars) if issues: raise bb.BBHandledException() -- cgit v1.2.3-54-g00ecf