Commit e28f78e1 authored by Maxime Perrotin's avatar Maxime Perrotin
Browse files

Add list of PIs to function makefiles

Needed for qgen support
parent 48301605
......@@ -154,7 +154,7 @@ This template is identical for Skeleton and Glue subfolders.
|Value of command line flag --polyorb-hi-c (or -p)
|-
|List_Of_PIs
|DOCUMENTATION MISSING
|List of all provided interfaces (names only)
|-
|ASync_RI_Param_Type
|DOCUMENTATION MISSING
......@@ -613,6 +613,9 @@ The output of this template is saved to the file with name returned by processin
|-
|Shared_Lib_Dir
|Path to the shared component type folder
|-
|List_Of_PIs
|List of all provided interfaces (names only)
|}
=== templates/concurrency_view/sub/trigger.tmplt ===
This file is processed for every node. The result of this file indicates if the rest of templates for given node will be processed.
......@@ -1013,7 +1016,7 @@ This template is evaluated for every block.
|Required interfaces (from ri.tmplt)
|-
|List_Of_PIs
|Complete list of provided interfaces
|List of all provided interfaces (names only)
|-
|List_Of_ASync_RIs
|Vector tag: name of asynchronous RIs
......@@ -1492,7 +1495,10 @@ filesys.tmplt.
|Vector Tag of node names
|-
|Node_CPU
| -> Corresponding CPU name (eg x86_linux)
| ↳ Corresponding CPU name (e.g. x86_linux)
|-
|Node_Platform
| ↳ Corresponding platform (e.g. PLATFORM_AIR)
|-
|Node_CPU_Classifier
| ↳ Corresponding CPU Classifier (ocarina...::x86_linux)
......
......@@ -21,8 +21,8 @@ This template is evaluated for every block.
| Required | Required interfaces (from |
| | ri.tmplt) |
+-----------------------------------+-----------------------------------+
| List_Of_PIs | Complete list of provided |
| | interfaces |
| List_Of_PIs | List of all provided interfaces |
| | (names only) |
+-----------------------------------+-----------------------------------+
| List_Of_ASync_RIs | Vector tag: name of asynchronous |
| | RIs |
......
......@@ -11,9 +11,12 @@ to the file with name returned by filesys.tmplt.
+-----------------------------------+-----------------------------------+
| Node_Names | Vector Tag of node names |
+-----------------------------------+-----------------------------------+
| Node_CPU | -> Corresponding CPU name (eg |
| Node_CPU | Corresponding CPU name (e.g. |
| | x86_linux) |
+-----------------------------------+-----------------------------------+
| Node_Platform | ↳ Corresponding platform (e.g. |
| | PLATFORM_AIR) |
+-----------------------------------+-----------------------------------+
| Node_CPU_Classifier | ↳ Corresponding CPU Classifier |
| | (ocarina...::x86_linux) |
+-----------------------------------+-----------------------------------+
......@@ -151,5 +154,3 @@ to the file with name returned by filesys.tmplt.
+-----------------------------------+-----------------------------------+
| Block_Languages | DOCUMENTATION MISSING |
+-----------------------------------+-----------------------------------+
| Node_Platform | DOCUMENTATION MISSING |
+-----------------------------------+-----------------------------------+
......@@ -154,7 +154,7 @@ This template is identical for Skeleton and Glue subfolders.
|Value of command line flag --polyorb-hi-c (or -p)
|-
|List_Of_PIs
|DOCUMENTATION MISSING
|List of all provided interfaces (names only)
|-
|ASync_RI_Param_Type
|DOCUMENTATION MISSING
......@@ -613,6 +613,9 @@ The output of this template is saved to the file with name returned by processin
|-
|Shared_Lib_Dir
|Path to the shared component type folder
|-
|List_Of_PIs
|List of all provided interfaces (names only)
|}
=== templates/concurrency_view/sub/trigger.tmplt ===
This file is processed for every node. The result of this file indicates if the rest of templates for given node will be processed.
......@@ -1013,7 +1016,7 @@ This template is evaluated for every block.
|Required interfaces (from ri.tmplt)
|-
|List_Of_PIs
|Complete list of provided interfaces
|List of all provided interfaces (names only)
|-
|List_Of_ASync_RIs
|Vector tag: name of asynchronous RIs
......
......@@ -41,3 +41,6 @@ languagename]
| Shared_Lib_Dir | Path to the shared component type |
| | folder |
+-----------------------------------+-----------------------------------+
| List_Of_PIs | List of all provided interfaces |
| | (names only) |
+-----------------------------------+-----------------------------------+
......@@ -25,7 +25,7 @@ and Glue subfolders.
+-----------------------+---------------------------------------------------+
| Use_POHIC | Value of command line flag --polyorb-hi-c (or -p) |
+-----------------------+---------------------------------------------------+
| List_Of_PIs | DOCUMENTATION MISSING |
| List_Of_PIs | List of all provided interfaces (names only) |
+-----------------------+---------------------------------------------------+
| ASync_RI_Param_Type | DOCUMENTATION MISSING |
+-----------------------+---------------------------------------------------+
......
......@@ -252,12 +252,24 @@ package body TASTE.Backend.Code_Generators is
Output_Lang : String;
Output_Sub : String := "src/") is
Output_File : File_Type;
-- some Makefiles may need the list of PIs (e.g. Qgen)
function List_Of_PIs return Tag is
Result : Tag;
begin
for PI of F.Provided loop
Result := Result & PI.Name;
end loop;
return Result;
end List_Of_PIs;
Make_Tmpl : constant Translate_Set :=
Function_Makefile_Template
(Model => Model,
F => F,
Modules => Get_Module_List,
Files => Get_ASN1_File_List);
Files => Get_ASN1_File_List)
& Assoc ("List_Of_PIs", List_Of_PIs);
Make_Path : constant String := Path & "makefile.tmplt";
Make_Text : constant String :=
......
@@-- The documentation of the templates is there:
@@-- https://taste.tuxfamily.org/wiki/index.php?title=Kazoo_Templates_Documentation
@@-- If you are using vim, go over the URL and pres gx in to follow the link
@@-- If you have no internet access you can also use (with vim) Ctrl-W-f or gf in vim to open the text doc:
@@-- $HOME/tool-inst/share/kazoo/doc/templates_skeletons_sub_makefile.ascii
# Simulink function @_Name_@
# @_List_Of_PIs_@
all: compile-linux
clean:
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment