build-script.sh 1.63 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
#!/bin/bash

# This script will build your TASTE system.

# You must check it before running it: it may need to be adapted to your context:
# 1) You may need to fix some paths and filenames (path to interface/deployment views)
# 2) You may need to specify additional paths for the compiler to find .h file
#    (e.g. "export C_INCLUDE_PATH=/usr/include/xenomai/analogy/:$C_INCLUDE_PATH")
# 3) You may need to link with pre-built libraries, using the -l option
#    (e.g. -l /usr/lib/libanalogy.a,/usr/lib/librtdm.a)
# 4) You may need to change the runtime (add -p flag to select PolyORB-HI-C)
# etc.

# Note: TASTE will not overwrite your changes - if you need to update some  parts
#       you will have to merge the changes with the newly-created "build-script.new.sh" file.
16 17 18

taste-update-data-view

19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50
rm -f function0.zip
zip function0 function0/*
rm -f function1.zip
zip function1 function1/*
rm -f function2.zip
zip function2 function2/*
[ ! -z "$CLEANUP" ] && rm -rf binary.*

echo Building the system with the Ada runtime 
assert-builder-ocarina.py \
	-f -g \
	--aadlv2 \
	--keep-case \
	--interfaceView InterfaceView.aadl \
	--deploymentView DeploymentView.aadl \
	-o binary.ada \
	--subC function0:function0.zip \
	--subC function1:function1.zip \
	--subC function2:function2.zip

echo Building the system with the C runtime 
assert-builder-ocarina.py \
        -f -g -p \
        --aadlv2 \
        --keep-case \
        --interfaceView InterfaceView.aadl \
        --deploymentView DeploymentView_POHIC.aadl \
        -o binary.pohic \
        --subC function0:function0.zip \
        --subC function1:function1.zip \
        --subC function2:function2.zip