From c9e5fd14693def1b95fc236899515060ca5eb4f4 Mon Sep 17 00:00:00 2001 From: Chenli Wei Date: Thu, 20 Apr 2023 16:38:45 +0800 Subject: [PATCH] misc: fix the summary issue after update board xml The new board xml have add a "module" node under the "processors/die" which has cause an issue when we run the summary, this patch use "//" to select all "cpu_id" under the "processors". Tracked-On: #8385 Signed-off-by: Chenli Wei --- misc/config_tools/scenario_config/config_summary.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/misc/config_tools/scenario_config/config_summary.py b/misc/config_tools/scenario_config/config_summary.py index ff5c7f73a..ad44e6771 100644 --- a/misc/config_tools/scenario_config/config_summary.py +++ b/misc/config_tools/scenario_config/config_summary.py @@ -100,7 +100,7 @@ class GenerateRst: # Get all physical CPU information from board.xml def get_pcpu(self): - pcpu_list = list(map(int, self.board_etree.xpath("processors/die/core/thread/cpu_id/text()"))) + pcpu_list = list(map(int, self.board_etree.xpath("processors//cpu_id/text()"))) return pcpu_list def write_shared_cache(self):