Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
TASTE
kazoo
Commits
e28f78e1
Commit
e28f78e1
authored
Mar 03, 2021
by
Maxime Perrotin
Browse files
Add list of PIs to function makefiles
Needed for qgen support
parent
48301605
Changes
8
Hide whitespace changes
Inline
Side-by-side
doc/preprocess/templates_from_wiki
View file @
e28f78e1
...
...
@@ -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 l
ist of provided interfaces
|
L
ist 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)
...
...
@@ -1663,4 +1669,4 @@ filesys.tmplt.
|-
|Block_Languages
|DOCUMENTATION MISSING
|}
\ No newline at end of file
|}
doc/templates/templates_concurrency_view_sub_block.ascii
View file @
e28f78e1
...
...
@@ -21,8 +21,8 @@ This template is evaluated for every block.
| Required | Required interfaces (from |
| | ri.tmplt) |
+-----------------------------------+-----------------------------------+
| List_Of_PIs |
Complete l
ist of provided
|
| |
interfaces
|
| List_Of_PIs |
L
ist of
all
provided
interfaces
|
| |
(names only)
|
+-----------------------------------+-----------------------------------+
| List_Of_ASync_RIs | Vector tag: name of asynchronous |
| | RIs |
...
...
doc/templates/templates_concurrency_view_sub_system.ascii
View file @
e28f78e1
...
...
@@ -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 (e
g
|
| 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 |
+-----------------------------------+-----------------------------------+
doc/templates/templates_from_wiki
View file @
e28f78e1
...
...
@@ -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 l
ist of provided interfaces
|
L
ist of
all
provided interfaces
(names only)
|-
|List_Of_ASync_RIs
|Vector tag: name of asynchronous RIs
...
...
@@ -1666,4 +1669,4 @@ filesys.tmplt.
|-
|Block_Languages
|DOCUMENTATION MISSING
|}
|}
\ No newline at end of file
doc/templates/templates_skeletons_sub_makefile.ascii
View file @
e28f78e1
...
...
@@ -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) |
+-----------------------------------+-----------------------------------+
doc/templates/templates_skeletons_sub_trigger.ascii
View file @
e28f78e1
...
...
@@ -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 |
+-----------------------+---------------------------------------------------+
...
...
src/taste-backend-code_generators.adb
View file @
e28f78e1
...
...
@@ -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
:=
...
...
templates/skeletons/simulink_main_script/makefile.tmplt
View file @
e28f78e1
@@-- 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
:
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment