forked from eclipse-iceoryx/iceoryx
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
iox-eclipse-iceoryx#409 optimize iceoryx build for axivion scan
Signed-off-by: Dietrich Krönke <dietrich.kroenke@apex.ai>
- Loading branch information
Showing
2 changed files
with
111 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
#!/bin/bash | ||
set -e | ||
|
||
ICEORYX_DIR=$(git rev-parse --show-toplevel) | ||
export ICEORYX_DIR | ||
HOST_HOSTNAME="localhost" | ||
|
||
source /opt/axivion_bauhaus/bauhaus-kshrc | ||
confdir="$(dirname "$(readlink -f "$ICEORYX_DIR")")" | ||
confdir="$confdir"/iceoryx/tools/axivion | ||
export BAUHAUS_CONFIG="$confdir" | ||
export NUM_PROCESSES=$(nproc) | ||
|
||
if [[ ! -d "$ICEORYX_DIR/axivion_results" ]]; then | ||
mkdir -p $ICEORYX_DIR/axivion_results | ||
else | ||
export AXIVION_LOCAL_BUILD=1 | ||
fi | ||
|
||
export AXIVION_DATABASES_DIR="$(realpath "$ICEORYX_DIR/axivion_results")" | ||
export AXIVION_DASHBOARD_URL="http://localhost/axivion" | ||
|
||
|
||
gccsetup --gcc gcc --g++ g++ "$confdir" | ||
bauhaus_config \ | ||
--add /cafeCC/Frontend/C/Compiler/Options/std_position_format=--std_position_format \ | ||
--add /cafeCC/Frontend/C++/Compiler/Options/std_position_format=--std_position_format \ | ||
--add /cafeCC/Frontend/Linker/Options/jott=-j \ | ||
--add /cafeCC/Frontend/Linker/Options/kleinI=-i2 \ | ||
--add /cafeCC/Frontend/Linker/Options/sg=--separate_groups \ | ||
--add /cafeCC/Frontend/Linker/Options/grossI=-I2000 \ | ||
--add /cafeCC/Frontend/Linker/Options/unused=--include_unused \ | ||
"$confdir" | ||
|
||
pushd $ICEORYX_DIR | ||
export AXIVION_VERSION_NAME="$(git describe --always --abbrev=1 --tags 2>/dev/null)" | ||
popd | ||
|
||
axivion_ci -j --verbose |