diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2022-09-02 07:40:52 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2022-09-02 10:50:11 +0200 |
commit | 51a30258f70d9cfe4780c45815962a9debf945b5 (patch) | |
tree | 87cfcd84d43a27350bf44b4e9fa2a4ffaad66100 /rtemsspec/interface.py | |
parent | spec: Add C interfaces to a group (diff) | |
download | rtems-central-51a30258f70d9cfe4780c45815962a9debf945b5.tar.bz2 |
spec: Add external interfaces to a group
Remove interface container item type.
Diffstat (limited to 'rtemsspec/interface.py')
-rw-r--r-- | rtemsspec/interface.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/rtemsspec/interface.py b/rtemsspec/interface.py index 882c442a..949c51f6 100644 --- a/rtemsspec/interface.py +++ b/rtemsspec/interface.py @@ -723,8 +723,7 @@ class _HeaderFile: def add_includes(self, item: Item) -> None: """ Adds the includes of the item to the header file includes. """ for parent in item.parents("interface-placement"): - if parent.type == "interface/header-file": - self._includes.append(parent) + self._includes.append(parent) def _add_child(self, item: Item) -> None: self._nodes[item.uid] = Node(self, item) @@ -836,9 +835,10 @@ def _gather_enabled_by_defined(item_level_interfaces: List[str], item_cache: ItemCache) -> Dict[str, str]: enabled_by_defined = {} # type: Dict[str, str] for uid in item_level_interfaces: - for child in item_cache[uid].children("interface-placement"): - define = f"defined(${{{child.uid}:/name}})" - enabled_by_defined[child["name"]] = define + for child in item_cache[uid].children("interface-ingroup"): + if child.type == "interface/unspecified-define": + define = f"defined(${{{child.uid}:/name}})" + enabled_by_defined[child["name"]] = define return enabled_by_defined |