diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2023-05-08 12:37:13 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2023-05-08 16:01:11 +0200 |
commit | a596b89343c5c8896a245bd69655a7c1721b2bdc (patch) | |
tree | 0dd98ac73e9b9874a2436a12337126a585848128 | |
parent | spec: Remove unspecified-macro-or-function (diff) | |
download | rtems-central-a596b89343c5c8896a245bd69655a7c1721b2bdc.tar.bz2 |
spec: Add unspecified header file item type
-rw-r--r-- | rtemsspec/interface.py | 5 | ||||
-rw-r--r-- | spec/spec/interface-unspecified-header-file.yml | 30 |
2 files changed, 34 insertions, 1 deletions
diff --git a/rtemsspec/interface.py b/rtemsspec/interface.py index d31bcb0e..c1655c4c 100644 --- a/rtemsspec/interface.py +++ b/rtemsspec/interface.py @@ -740,7 +740,10 @@ 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": + if parent.type in [ + "interface/header-file", + "interface/unspecified-header-file" + ]: self._includes.append(parent) def _add_child(self, item: Item) -> None: diff --git a/spec/spec/interface-unspecified-header-file.yml b/spec/spec/interface-unspecified-header-file.yml new file mode 100644 index 00000000..360a7feb --- /dev/null +++ b/spec/spec/interface-unspecified-header-file.yml @@ -0,0 +1,30 @@ +SPDX-License-Identifier: CC-BY-SA-4.0 OR BSD-2-Clause +copyrights: +- Copyright (C) 2023 embedded brains GmbH & Co. KG +enabled-by: true +links: +- role: spec-member + uid: root +- role: spec-refinement + spec-key: interface-type + spec-value: unspecified-header-file + uid: interface +spec-description: null +spec-example: null +spec-info: + dict: + attributes: + path: + description: | + It shall be the path used to include the header file. For example + :file:`rtems/confdefs.h`. + spec-type: str + references: + description: null + spec-type: external-reference-list + description: | + This set of attributes specifies an unspecified header file. + mandatory-attributes: all +spec-name: Interface Unspecified Header File Item Type +spec-type: interface-unspecified-header-file +type: spec |