Fix missing output in generated CLI/config
The templates were looking for the name of the CLI_COMMAND and CONFIG_FUNCTION structures in the srong place. Change-Id: I709d6716216173ba6a7ed41a260728238f96d2db Signed-off-by: Chris Luke <chrisy@flirble.org>
This commit is contained in:

committed by
Damjan Marion

parent
822af5c95d
commit
af405f77c7
@ -257,6 +257,7 @@ class Siphon(object):
|
||||
"directory": o['meta']['directory'],
|
||||
"file": o['meta']['file'],
|
||||
"macro": o['macro'],
|
||||
"name": o['name'],
|
||||
"key": key,
|
||||
"label": self.item_label(group, key),
|
||||
}
|
||||
|
@ -31,7 +31,7 @@
|
||||
### Long help
|
||||
|
||||
{{ v['long_help'] }}
|
||||
{%- endif %}
|
||||
{% endif %}
|
||||
{% if 'siphon_block' in item['meta'] %}
|
||||
{% set sb = item["meta"]["siphon_block"] %}
|
||||
{% if sb %}
|
||||
@ -42,14 +42,14 @@
|
||||
{{ sb }}
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
{% if "item" in meta or "function" in v %}
|
||||
{% if 'name' in meta or 'function' in v %}
|
||||
{# Gives some developer-useful linking #}
|
||||
|
||||
### Declaration and implementation
|
||||
{% if "item" in meta %}
|
||||
{% if "name" in meta %}
|
||||
|
||||
{{ "Declaration: @ref %s (@ref %s line %d)" %
|
||||
(meta['item'], meta["file"], item["meta"]["line_start"]) }}
|
||||
(meta['name'], meta["file"], item["meta"]["line_start"]) }}
|
||||
{% endif %}
|
||||
{% if "function" in v %}
|
||||
|
||||
|
@ -25,14 +25,14 @@
|
||||
{{ sb }}
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
{% if "item" in meta or "function" in item %}
|
||||
{% if "name" in meta or "function" in item %}
|
||||
{# Gives some developer-useful linking #}
|
||||
|
||||
### Declaration and implementation
|
||||
{% if "item" in meta %}
|
||||
{% if "name" in meta %}
|
||||
|
||||
{{ "Declaration: @ref %s (@ref %s line %d)" %
|
||||
(meta['item'], meta["file"], item["meta"]["line_start"]) }}
|
||||
(meta['name'], meta["file"], item["meta"]["line_start"]) }}
|
||||
{% endif %}
|
||||
{% if "function" in item %}
|
||||
|
||||
|
Reference in New Issue
Block a user