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

Add simulation rule in generated makefiles

parent 6ee6233b
......@@ -20,6 +20,10 @@
@@END_IF@@
make -j -C @_Node_Name_@ -f Makefile.@_Node_Name_@
@_LOWER:Node_Name_@_simu: @_LOWER:REPLACE_ALL(,/):Partition_Names_@ DriversConfig/drivers_config.h
make -j -C @_Node_Name_@ -f Makefile.@_Node_Name_@ simulate
# Force build of node @_Node_Name_@ for RTEMS
# (rule generated by templates/concurrency_view/aadl_4_makefile/node.tmplt)
@@INLINE@@
......
......@@ -49,6 +49,14 @@ all:
@@END_TABLE@@
@@END_INLINE@@
# Generate a dynamic library excluding the runtime for each node
@@INLINE()( )()@@
simu:
@@TABLE@@
@_LOWER:Node_Names_@_simu
@@END_TABLE@@
@@END_INLINE@@
@@INLINE()( )()@@
rtems_ada:
@@TABLE@@
......@@ -91,7 +99,7 @@ DriversConfig/drivers_config.h: drivers_config.asn
mono $(shell which asn1.exe) -o DriversConfig -Ada drivers_config.asn @_REPLACE_ALL(,/ ):UNIQ(,):Device_ASN1_File_@
@@END_IF@@
@@ELSE@@
DriversConfig/drivers_config.h: # Not a distributed system
DriversConfig/drivers_config.h: # Not a distributed system => nothing to do
@@END_IF@@
@_Nodes_@
......
......@@ -29,6 +29,10 @@ export PROJECT_CACHE=${HOME}/.taste_AST_cache
all: build-default
# Build a simulator of the system
simu: aadl2glueC build/system_config.h ${DATAVIEW_PATH}/built build/deploymentview_final/Makefile
$(MAKE) -j -C build -f Makefile.taste simu
@@-- global check to check which dataviews are neeeded
@@TABLE@@
@@IF@@ @_Unique_Languages_@ = Ada or @_Unique_Languages_@ = SDL
......@@ -250,4 +254,4 @@ clean:
rm -rf binaries dataview
$(MAKE) -C build -f Makefile.taste clean
.PHONY: clean compile-all-linux function-instances-linux function-types-linux build-default dataview build-rtems-ada dataview
.PHONY: clean simu compile-all-linux function-instances-linux function-types-linux build-default dataview build-rtems-ada dataview
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