mirror of
git://git.yoctoproject.org/poky.git
synced 2025-07-19 12:59:02 +02:00
devtool: ide-sdk sort cmake preset
Sort the keys of the generated CMakeUserPreset.json file to make it easier to search and compare. (From OE-Core rev: b886c26bf893878ba8eb6bee80dd0507e5cb0d2d) Signed-off-by: Adrian Freihofer <adrian.freihofer@siemens.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
parent
1f7eb26c94
commit
71acb3b781
|
@ -493,7 +493,7 @@ class RecipeModified:
|
|||
|
||||
vars = (key for key in d.keys() if not key.startswith(
|
||||
"__") and not d.getVarFlag(key, "func", False))
|
||||
for var in vars:
|
||||
for var in sorted(vars):
|
||||
func = d.getVarFlag(var, "func", False)
|
||||
if d.getVarFlag(var, 'python', False) and func:
|
||||
continue
|
||||
|
@ -545,7 +545,7 @@ class RecipeModified:
|
|||
cache_vars = {}
|
||||
oecmake_args = d.getVar('OECMAKE_ARGS').split()
|
||||
extra_oecmake = d.getVar('EXTRA_OECMAKE').split()
|
||||
for param in oecmake_args + extra_oecmake:
|
||||
for param in sorted(oecmake_args + extra_oecmake):
|
||||
d_pref = "-D"
|
||||
if param.startswith(d_pref):
|
||||
param = param[len(d_pref):]
|
||||
|
|
Loading…
Reference in New Issue
Block a user