From 177f2930c255f151f499863682748bc6eda1117b Mon Sep 17 00:00:00 2001 From: Christopher Haster Date: Sat, 11 Jun 2016 15:43:59 -0500 Subject: [PATCH] [build tools] Added support for completely overriding cumulative attributes --- tools/config.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tools/config.py b/tools/config.py index 8ed96964ae..66b1035036 100644 --- a/tools/config.py +++ b/tools/config.py @@ -226,6 +226,11 @@ class Config: for attr in Target._Target__cumulative_attributes: attrs = getattr(self.target_instance, attr) + if attr in overrides: + del attrs[:] + attrs.extend(overrides[attr]) + del overrides[attr] + if attr+'_add' in overrides: attrs.extend(overrides[attr+'_add']) del overrides[attr+'_add']