Changeset 1767cc8 in rtems-central


Ignore:
Timestamp:
May 6, 2020, 10:39:04 AM (6 months ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
master
Children:
a90371d
Parents:
833470c
git-author:
Sebastian Huber <sebastian.huber@…> (05/06/20 10:39:04)
git-committer:
Sebastian Huber <sebastian.huber@…> (05/28/20 08:38:22)
Message:

interface: Rename path-domain in interface-domain

Location:
rtemsqual
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • rtemsqual/interface.py

    r833470c r1767cc8  
    452452
    453453def _generate_header_file(item: Item, domains: Dict[str, str]) -> None:
    454     dom = item["path-domain"]
    455     if dom not in domains:
     454    domain_path = domains.get(item["interface-domain"], None)
     455    if domain_path is None:
    456456        return
    457457    header_file = HeaderFile()
     
    459459    header_file.finalize(item)
    460460    header_file.write(
    461         os.path.join(domains[dom], item["path-prefix"], item["path-include"]))
     461        os.path.join(domain_path, item["path-prefix"], item["path-include"]))
    462462
    463463
     
    477477    """
    478478    for item in item_cache.top_level.values():
    479         _visit_header_files(item, config["path-domains"])
     479        _visit_header_files(item, config["interface-domains"])
  • rtemsqual/tests/spec-interface/h.yml

    r833470c r1767cc8  
    33- Copyright (C) 2020 embedded brains GmbH (http://www.embedded-brains.de)
    44enabled-by: []
     5interface-domain: abc
    56interface-type: header-file
    67links: []
    7 path-domain: abc
     8path-include: h.h
    89path-prefix: include
    9 path-include: h.h
    1010type: interface
  • rtemsqual/tests/spec-interface/h2.yml

    r833470c r1767cc8  
    33- Copyright (C) 2020 embedded brains GmbH (http://www.embedded-brains.de)
    44enabled-by: []
     5interface-domain: abc
    56interface-type: header-file
    67links: []
    7 path-domain: abc
     8path-include: h2.h
    89path-prefix: include
    9 path-include: h2.h
    1010type: interface
  • rtemsqual/tests/spec-interface/h3.yml

    r833470c r1767cc8  
    33- Copyright (C) 2020 embedded brains GmbH (http://www.embedded-brains.de)
    44enabled-by: []
     5interface-domain: abc
    56interface-type: header-file
    67links: []
    7 path-domain: abc
     8path-include: h3.h
    89path-prefix: include
    9 path-include: h3.h
    1010type: interface
  • rtemsqual/tests/spec-interface/math.yml

    r833470c r1767cc8  
    33- Copyright (C) 2020 embedded brains GmbH (http://www.embedded-brains.de)
    44enabled-by: []
     5interface-domain: c
    56interface-type: header-file
    67links: []
    7 path-domain: c
     8path-include: math.h
    89path-prefix: null
    9 path-include: math.h
    1010type: interface
  • rtemsqual/tests/spec-interface/stdint.yml

    r833470c r1767cc8  
    33- Copyright (C) 2020 embedded brains GmbH (http://www.embedded-brains.de)
    44enabled-by: []
     5interface-domain: c
    56interface-type: header-file
    67links: []
    7 path-domain: c
     8path-include: stdint.h
    89path-prefix: null
    9 path-include: stdint.h
    1010type: interface
  • rtemsqual/tests/test_interface.py

    r833470c r1767cc8  
    3939    interface_config = {}
    4040    base_directory = os.path.join(tmpdir, "base")
    41     path_domains = {"abc": base_directory}
    42     interface_config["path-domains"] = path_domains
     41    interface_domains = {"abc": base_directory}
     42    interface_config["interface-domains"] = interface_domains
    4343
    4444    item_cache_config["paths"] = [os.path.normpath(tmpdir)]
Note: See TracChangeset for help on using the changeset viewer.