On 14/7/21 5:01 pm, Sebastian Huber wrote: > On 14/07/2021 08:51, chr...@rtems.org wrote: >> @@ -695,12 +692,18 @@ class OptionItem(Item): >> return True >> return False >> - def default_value(self, variant): >> + def default_value(self, variant, family): >> value = self.data["default"] >> for default in self.data["default-by-variant"]: >> if OptionItem._is_variant(default["variants"], variant): >> value = default["value"] >> break >> + if 'default-by-family' in self.data: >> + for default in self.data["default-by-family"]: >> + if 'families' in default: >> + if OptionItem._is_variant(default["families"], family): >> + value = default["value"] >> + break > > During the discussion of the build items, we agreed that all attributes should > be explicit in the items. So, a "default-by-family: []" should be added to all > BSP items.
Can I add `default-by-family: []` before `default-by-variant` in the spec files? It is easier to batch edit. Chris _______________________________________________ devel mailing list devel@rtems.org http://lists.rtems.org/mailman/listinfo/devel