[PATCH 2/3] build: Replace variant patterns with a list

Sebastian Huber sebastian.huber at embedded-brains.de
Thu Jan 19 07:06:18 UTC 2023

On 19.01.23 01:17, Chris Johns wrote:
>>> Why has this been done?
>> The enabled-by expressions used in patch 3 do not support regular expressions.
> I did not pick that up. Why was that regx functionality removed? Is it related
> to scripting and rtems-central?

The enabled-by expressions supported by the wscript don't support 
regular expressions:


The interesting part of the patch set is patch 3:

Merge the "default" and "default-by-variant" attributes.  Use an
"enabled-by" expression to select the default value based on the enabled
set.  This makes it possible to select default values depending on other
options.  For example you could choose memory settings based on whether
RTEMS_SMP is enabled or disabled.

>>> Why the noise in the patch of only lines being moved? Where has this come from?
>>> Is there a new requirement spec fields be in some osrt of order?
>> I did the change with a script which sorted the lists. In general, the lists
>> should be sorted.
> This is a good example of problems a lack of scripting support along side the
> build spec files creates. It makes manual changes difficult when rules get
> layered like this plus it means you are the only one who can make generated
> changes without there being a clash of scripting specifics, ie my script vs your
> script or something like that.

I don't understand what is the problem with the sorted lists. If you 
have a list of unordered phrases, it is not unusual to still sort them 
in lexicographic order.

> And I have no intention in cloning rtems-central and learning how to use it.
> There was a primary agreement for the separation of all qual work and the
> ability for it to be removed from the project without any side effects.

You don't have to use the stuff in rtems-central, it could be just more 
convenient and efficient. It would be possible to write a Github action 
which checks that the build items match the expected format for pull 

embedded brains GmbH
Herr Sebastian HUBER
Dornierstr. 4
82178 Puchheim
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:

More information about the devel mailing list