Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
cb20
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
tech
inf
public
cb20
Commits
5364277a
Commit
5364277a
authored
5 years ago
by
Andreas Kunz
Browse files
Options
Downloads
Patches
Plain Diff
Enable EEROS versioning in build scripts
parent
d9ec16ad
No related branches found
No related tags found
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
Software/clone.sh
+10
-6
10 additions, 6 deletions
Software/clone.sh
Software/config.sh.in
+65
-1
65 additions, 1 deletion
Software/config.sh.in
Software/deploy.sh
+1
-1
1 addition, 1 deletion
Software/deploy.sh
Software/make.sh
+1
-1
1 addition, 1 deletion
Software/make.sh
with
77 additions
and
9 deletions
Software/clone.sh
+
10
−
6
View file @
5364277a
...
...
@@ -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
This diff is collapsed.
Click to expand it.
Software/config.sh.in
+
65
−
1
View file @
5364277a
# 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"
...
...
@@ -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/
This diff is collapsed.
Click to expand it.
Software/deploy.sh
+
1
−
1
View file @
5364277a
#!/bin/bash
target
=
"pathos@es140.ntb.ch:/tmp/"
target
=
${
target_username
}
@
${
target_IP_address
}
:
${
target_application_folder
}
list
=
"deploy.txt"
tmp
=
".tmp-deploy"
...
...
This diff is collapsed.
Click to expand it.
Software/make.sh
+
1
−
1
View file @
5364277a
...
...
@@ -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
...
...
@@ -53,4 +54,3 @@ cmake -DCMAKE_TOOLCHAIN_FILE=$toolchain_file \
make
popd
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment