mirror of https://github.com/ARMmbed/mbed-os.git
Stabilize macro ordering in mbed_config.h
parent
28064f1319
commit
fb42bb0439
|
@ -1124,10 +1124,14 @@ class Config(object):
|
|||
Config._check_required_parameters(params)
|
||||
params_with_values = [p for p in params.values() if p.value is not None]
|
||||
ctx = {
|
||||
"cfg_params" : [(p.macro_name, str(p.value), p.set_by)
|
||||
for p in params_with_values],
|
||||
"macros": [(m.macro_name, str(m.macro_value or ""), m.defined_by)
|
||||
for m in macros.values()],
|
||||
"cfg_params": sorted([
|
||||
(p.macro_name, str(p.value), p.set_by)
|
||||
for p in params_with_values
|
||||
]),
|
||||
"macros": sorted([
|
||||
(m.macro_name, str(m.macro_value or ""), m.defined_by)
|
||||
for m in macros.values()
|
||||
]),
|
||||
"name_len": max([len(m.macro_name) for m in macros.values()] +
|
||||
[len(m.macro_name) for m in params_with_values]
|
||||
+ [0]),
|
||||
|
|
Loading…
Reference in New Issue