[PATCH v2] build: Use BSP family for options
Sebastian Huber
sebastian.huber at embedded-brains.de
Wed Jul 14 07:01:20 UTC 2021
On 14/07/2021 08:51, chrisj at 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.
--
embedded brains GmbH
Herr Sebastian HUBER
Dornierstr. 4
82178 Puchheim
Germany
email: sebastian.huber at embedded-brains.de
phone: +49-89-18 94 741 - 16
fax: +49-89-18 94 741 - 08
Registergericht: Amtsgericht München
Registernummer: HRB 157899
Vertretungsberechtigte Geschäftsführer: Peter Rasmussen, Thomas Dörfler
Unsere Datenschutzerklärung finden Sie hier:
https://embedded-brains.de/datenschutzerklaerung/
More information about the devel
mailing list