Commit e9c639e9 authored by Maxime Perrotin's avatar Maxime Perrotin

Prepare template for build script (preliminary)

parent 607e11b5
......@@ -4,11 +4,11 @@ use Text_IO;
with TASTE,
TASTE.AADL_Parser,
TASTE.Templates,
Templates_Parser;
TASTE.Templates;
use TASTE.AADL_Parser,
TASTE.Templates,
Templates_Parser;
TASTE.Templates;
with Templates_Parser;
use Templates_Parser;
procedure AADL_Parser is
Model : TASTE_Model;
......
package TASTE.Parser_Version is
Parser_Release : constant String :=
"2164c99 ; Commit Date: Wed Dec 27 20:11:27 2017 ";
"607e11b ; Commit Date: Sun Dec 31 15:42:19 2017 ";
Ocarina_Version : constant String :=
"Ocarina 2017.x (Working Copy from rd078c54)";
end TASTE.Parser_Version;
\ No newline at end of file
#!/bin/bash -e
# This script will build your system
# DO NOT EDIT THIS FILE - IT WAS GENERATED BY TASTE
# If you need additional pre-processing, there are three hook files
# that you can provide and that are called dring the build:
# user_init_pre.sh, user_init_post.sh and user_init_last.sh
# These files will never get overwritten by TASTE.
# Inside these files you may set some environment variables:
# C_INCLUDE_PATH=/usr/include/xenomai/analogy/:${C_INCLUDE_PATH}
# unset USE_POHIC
CWD=$(pwd)
if [ -t 1 ] ; then
COLORON="\e[1m\e[32m"
COLOROFF="\e[0m"
else
COLORON=""
COLOROFF=""
fi
INFO="${COLORON}[INFO]${COLOROFF}"
if [ -f user_init_pre.sh ]
then
echo -e "${INFO} Executing user-defined init script"
source user_init_pre.sh
fi
# By default, use PolyORB-HI-C runtime
USE_POHIC=1
# Set Debug mode by default
DEBUG_MODE=--debug
INTERFACEVIEW=<Interface_View_Path>
# Output path were the user code was generated
SKELS=<Output_Path>
<Generate_Code>
<Zip_Code>
if [ -f ConcurrencyView.pro ]
then
ORCHESTRATOR_OPTIONS+=" -w ConcurrencyView.pro "
elif [ -f ConcurrencyView_Properties.aadl ]
then
ORCHESTRATOR_OPTIONS+=" -w ConcurrencyView_Properties.aadl "
fi
if [ -f user_init_post.sh ]
then
echo -e "${INFO} Executing user-defined post-init script"
source user_init_post.sh
fi
if [ -f additionalCommands.sh ]
then
source additionalCommands.sh
fi
if [ ! -z "$USE_POHIC" ]
then
OUTPUTDIR=binary.c
ORCHESTRATOR_OPTIONS+=" --with-polyorb-hi-c "
else
OUTPUTDIR=binary.ada
fi
cd "$CWD" && \\
assert-builder-ocarina.py \\
--fast \\
--aadlv2 \\
--keep-case \\
$DEBUG_MODE \\
--interfaceView "$INTERFACEVIEW" \\
--deploymentView "$DEPLOYMENTVIEW" \\
-o "$OUTPUTDIR" \\
@@LIST@@
<Functions>
@@END_LIST@@
<CodeCoverage> \\
$ORCHESTRATOR_OPTIONS
if [ -f user_init_last.sh ]
then
echo -e "${INFO} Executing user-defined post-build script"
source user_init_last.sh
fi
# End of build script
Markdown is supported
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