From 1182665de0da9a6e5fc77107f32a7fc1515029d0 Mon Sep 17 00:00:00 2001 From: Alexandru DAMIAN Date: Thu, 14 Nov 2013 13:56:30 +0000 Subject: bitbake: cooker, toaster: variable definition tracking In order to track the file where a configuration variable was defined, this patch bring these changes: * a new feature is defined in CookerFeatures, named BASEDATASTORE_TRACKING. When a UI requests BASEDATASTORE_TRACKING, the base variable definition are tracked when configuration is parsed. * getAllKeysWithFlags now includes variable history in the data dump * toaster_ui.py will record the operation, file path and line number where the variable was changes * toaster Simple UI will display the file path and line number for Configuration page There is a change in the models to accomodate the recording of variable change history. [YOCTO #5227] (Bitbake rev: 78e58fed82f2a71f052485de0052d7b9cca53ffd) Signed-off-by: Alexandru DAMIAN Signed-off-by: Richard Purdie --- bitbake/lib/toaster/bldviewer/templates/configuration.html | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'bitbake/lib/toaster/bldviewer') diff --git a/bitbake/lib/toaster/bldviewer/templates/configuration.html b/bitbake/lib/toaster/bldviewer/templates/configuration.html index 052c37c4e8..8db35e0d98 100644 --- a/bitbake/lib/toaster/bldviewer/templates/configuration.html +++ b/bitbake/lib/toaster/bldviewer/templates/configuration.html @@ -5,16 +5,18 @@ Name - Value Description + Definition history + Value {% for variable in configuration %} {{variable.variable_name}} - {{variable.variable_value}} {% if variable.description %}{{variable.description}}{% endif %} + {% for vh in variable.variablehistory_set.all %}{{vh.operation}} in {{vh.file_name}}:{{vh.line_number}}
{%endfor%} + {{variable.variable_value}} {% endfor %} {% endblock %} -- cgit v1.2.3-54-g00ecf