[PATCH v3 5/7] dts: handle CLI overrides in the configuration

Dean Marx dmarx at iol.unh.edu
Thu Jan 16 21:53:55 CET 2025


On Wed, Jan 15, 2025 at 9:19 AM Luca Vizzarro <luca.vizzarro at arm.com> wrote:
>
> The current handling of the configuration loading is inconsistent. After
> the whole configuration is loaded, if there are any CLI or environment
> overrides set, the code forcefully modifies the frozen configuration to
> use them.
>
> This changes the handling by passing the environment/CLI settings as
> part of the configuration context and handle the overrides directly at
> the field level before these are validated. As a positive side effect,
> the validator won't complain if a field is missing from the file but it
> has been specified as an environment/CLI override.
>
> Bugzilla ID: 1360
> Bugzilla ID: 1598
>
> Signed-off-by: Nicholas Pratte <npratte at iol.unh.edu>
> Signed-off-by: Luca Vizzarro <luca.vizzarro at arm.com>
> Reviewed-by: Paul Szczepanek <paul.szczepanek at arm.com>

Reviewed-by: Dean Marx <dmarx at iol.unh.edu>


More information about the dev mailing list