system.tmplt 2.89 KB
Newer Older
1
2
@@-- The following tags are available in this template:
@@--
3
@@-- @_Nodes_@               : Code generated for the nodes (from node.tmplt)
4
5
6
7
8
9
@@-- @_Node_Names_@          : Vector Tag of node names
@@-- @_Node_CPU_@            :  |_ Corresponding CPU name (eg x86_linux)
@@-- @_Node_CPU_Classifier_@ :  |_ CPU Classifier (ocarina...::x86_linux)
@@-- @_Partition_Names_@     : Vector Tag of partition names
@@-- @_Partition_Node_@      :  |_ Corresponding node name
@@-- @_Partition_CPU_@       :  |_ Corresponding CPU name
10
@@-- @_Threads_@             : Code generated for the threads (from thread.tmplt)
11
@@-- @_Thread_Names_@        : List of all threads in the complete system
12
@@-- @_Block_Names_@         : List of all blocks in the complete system
13
@@-- @_Target_Packages_@     : List of all target package names in the complete system
Maxime Perrotin's avatar
Maxime Perrotin committed
14
15
16
@@-- @_Bus_Names_@           : Vector tag: busses present in the system
@@-- @_Bus_AADL_Package_@    :   |_ corresponding AADL Package
@@-- @_Bus_Classifier_@      :   |_ corresponding AADL classifier
17
18
19
20
@@-- And all the system configuration obtained from the command line:
@@-- Interface_View, Deployment_View, Data_View, Binary_Path, Check_Data_View,
@@-- Output_Dir, Skeletons, Glue, Use_POHIC, Timer_Resolution, Debug_Flag,
@@-- No_Stdlib_Flag, Timer_Resolution, Other_Files (list of aadl files)
Maxime Perrotin's avatar
Maxime Perrotin committed
21
@@INLINE()( )()@@
22
all:
Maxime Perrotin's avatar
Maxime Perrotin committed
23
@@TABLE@@
Maxime Perrotin's avatar
Maxime Perrotin committed
24
@_LOWER:Node_Names_@_native
Maxime Perrotin's avatar
Maxime Perrotin committed
25
@@END_TABLE@@
26
@@END_INLINE@@
27
	ocarina -x main.aadl
28
@@TABLE@@
Maxime Perrotin's avatar
Maxime Perrotin committed
29
	make -j -C @_Node_Names_@ -f Makefile.@_Node_Names_@
30
31
@@END_TABLE@@

Maxime Perrotin's avatar
Maxime Perrotin committed
32
33
34
35
36
37
@@INLINE()( )()@@
rtems_ada:
@@TABLE@@
@_LOWER:Node_Names_@_rtems_ada
@@END_TABLE@@
@@END_INLINE@@
38
	ocarina -x main.aadl
Maxime Perrotin's avatar
Maxime Perrotin committed
39
@@TABLE@@
Maxime Perrotin's avatar
Maxime Perrotin committed
40
	make -j -C @_Node_Names_@ -f Makefile.@_Node_Names_@ debug_rtems_leon3_with_ada
Maxime Perrotin's avatar
Maxime Perrotin committed
41
42
@@END_TABLE@@

43
44
45
46
47
48
@@INLINE()( )()@@
air:
@@TABLE@@
@_LOWER:Node_Names_@_air
@@END_TABLE@@
@@END_INLINE@@
49
	ocarina -x main.aadl
50
@@TABLE@@
51
52
53
54
55
56
57
58
	# generate the xml file for AIR and call AIR's configure script
	ocarina -aadlv2 -v -disable-annexes=emv2 -g air_configuration \
                -r deploymentview.final system.aadl deployment.aadl \
                Cheddar_Properties.aadl arinc653.aadl data_model.aadl \
                TASTE_IV_Properties.aadl TASTE_DV_Properties.aadl \
                taste_properties.aadl base_types.aadl \
                ../../DataView.aadl ../../InterfaceView.aadl ../../DeploymentView.aadl \
                ../../../common/ocarina_components.aadl && \
59
        cd deploymentview_final && rm -f Makefile && (configure --keep-files-silent)
60
	@echo "XML generated, AIR configuration done, building..."
Maxime Perrotin's avatar
Maxime Perrotin committed
61
	make -j -C @_Node_Names_@ -f Makefile.@_Node_Names_@ air
62
	@echo Putting partitions alltogether
Maxime Perrotin's avatar
Maxime Perrotin committed
63
	make -j -f Makefile.air && mkdir -p ../binaries && cp deploymentview_final/executable/* ../binaries
64
65
@@END_TABLE@@

66
@_Nodes_@
67
68
69
70
71
72

clean:
@@TABLE@@
	make -C @_Node_Names_@ -f Makefile.@_Node_Names_@ clean
	rm -rf *_adainit deploymentview_final
@@END_TABLE@@
73

Maxime Perrotin's avatar
Maxime Perrotin committed
74
.PHONY:	@_REPLACE_ALL(,/):LOWER:Block_Names_@