Skip to content
This repository was archived by the owner on Mar 9, 2022. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 10 additions & 6 deletions Software/clone.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,19 +6,23 @@ script_dir="$(dirname $script)"
. "$script_dir/config.sh.in"

if [ ! -d "$eeros_source_dir" ]; then
git clone https://github.com/eeros-project/eeros-framework.git -o upstream "$eeros_source_dir"
git clone $eeros_github_address -o upstream "$eeros_source_dir"
pushd "$eeros_source_dir"
git checkout master
git checkout $eeros_github_version
popd
fi

if [ ! -d "$flink_source_dir" ]; then
git clone https://github.com/flink-project/flinklib.git -o upstream --recursive "$flink_source_dir"
git clone $flinklib_github_address -o upstream --recursive $flink_source_dir
pushd $flink_source_dir
git checkout $flinklib_github_version
popd
fi

if [ ! -d "$flink_eeros_source_dir" ]; then
git clone https://github.com/eeros-project/flink-eeros.git -o upstream "$flink_eeros_source_dir"
git clone $flink_eeros_github_address -o upstream $flink_eeros_source_dir
pushd $flink_eeros_source_dir
git checkout $flink_eeros_github_version
popd
fi



66 changes: 65 additions & 1 deletion Software/config.sh.in
Original file line number Diff line number Diff line change
@@ -1,7 +1,51 @@
# cb20 project configuration file

# This file contains all configuration variables
# for the cross development toolchain.


wd="$(pwd)"

# important: you must use the same toolchain as the one used on the cb20

# variables for clone.sh script (location and version of the sources)
#------------------------------------------------------------------------------
# The "github_address" variables specify, where git will clone the repositories
# from. The "github_version" variables specify the git reference (tag, branch,
# commit hash), which git will use to checkout the version.
# The "required_version" variables specify the versions of the libraries.
# CMake checks the required version and fails if it is not present.
# This ensures version checks during building the libraries and application.
# In general, nothing needs to be changed in this section
# unless special versions are needed.


eeros_github_address=https://github.com/eeros-project/eeros-framework.git
eeros_github_version=v1.0.0
eeros_required_version=1.0.0.0

flinklib_github_address=https://github.com/flink-project/flinklib.git
flinklib_github_version=master

flink_eeros_github_address=https://github.com/eeros-project/flink-eeros.git
flink_eeros_github_version=master





# variables for make.sh script
#------------------------------------------------------------------------------
# The "toolchain_file" variable specifies the toolchain file, which CMake uses
# to choose the right build tools.
# important: you must use the same toolchain as the one used on the cb20.
# All the "dir" variables specify the names for the folders.
# In general, nothing needs to be changed in this section unless another
# toolchain file must be used or the folder names do not
# meet the project requirements.


toolchain_file="~/Toolchains/arm-gcc53/host/usr/share/buildroot/toolchainfile.cmake"

install_dir="$wd/install-armhf"
build_dir="$wd/build-armhf"

Expand All @@ -17,3 +61,23 @@ flink_eeros_build_dir="$build_dir/flink-eeros"
cb20test_source_dir="$wd/cb20test"
cb20test_build_dir="$build_dir/cb20test"





# variables for deploy.sh script
#------------------------------------------------------------------------------
# The "target_IP_address" variable specifies the IP address or hostname
# of the target. The deploy script transmits the files to the target using scp.
# The "target_username" variable specifies the user name, which is used by
# scp when the files are transmitted. In general, it is not necessary to change
# these values unless the network settings and/or the user name was changed on
# the target.
# The "target_application_folder" variable specifies the location on the
# target, where the application will be copied to by scp.


target_IP_address=es140.ntb.ch
target_username=pathos
target_application_folder=/tmp/

2 changes: 1 addition & 1 deletion Software/deploy.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/bash

target="pathos@es140.ntb.ch:/tmp/"
target=${target_username}@${target_IP_address}:${target_application_folder}
list="deploy.txt"
tmp=".tmp-deploy"

Expand Down
2 changes: 1 addition & 1 deletion Software/make.sh
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ cmake -DCMAKE_TOOLCHAIN_FILE=$toolchain_file \
-DADDITIONAL_INCLUDE_DIRS="$install_dir/include" \
-DADDITIONAL_LINK_DIRS="$install_dir/lib" \
-DCMAKE_BUILD_TYPE=Release \
-DREQUIRED_EEROS_VERSION=$eeros_required_version \
$flink_eeros_source_dir
make
make install
Expand All @@ -53,4 +54,3 @@ cmake -DCMAKE_TOOLCHAIN_FILE=$toolchain_file \
make
popd