Skip to content
Snippets Groups Projects
Commit 598c9e3f authored by al.schwinn's avatar al.schwinn
Browse files

Update Yocto SDK path and check for existance

parent d626be12
No related branches found
No related tags found
No related merge requests found
#!/bin/bash
YOCTO_SDK_ENV=/common/usr/embedded/yocto/fesa/sdk/environment-setup-core2-64-ffos-linux
GLOBAL_RELEASE_DIR=/common/usr/cscofe/silecs/
TARGET=x86_64
......@@ -81,8 +82,14 @@ echo "Install directory:" $RELEASE_DIR
echo "------------------------------------------------------------------------"
if [[ $TARGET == yocto ]]; then
if [ ! -f "$YOCTO_SDK_ENV" ]; then
echo "Error: Build environment for target '$TARGET' not found at '$YOCTO_SDK_ENV'."
echo "configure aborted"
exit 1
fi
# Configure yocto environment.
unset LD_LIBRARY_PATH; source /common/usr/embedded/yocto/sdk/environment-setup-core2-64-ffos-linux
unset LD_LIBRARY_PATH; source $YOCTO_SDK_ENV
cmake -S . -B $BUILD_DIR -DBUILD_TARGET=$TARGET -DCMAKE_INSTALL_PREFIX=$RELEASE_DIR -DCMAKE_BUILD_TYPE=$BUILD_TYPE -DBUILD_COMMUNICATION_LIB_ONLY=ON -DADD_LATEST_LINK=OFF
else
cmake -S . -B $BUILD_DIR -DBUILD_TARGET=$TARGET -DCMAKE_INSTALL_PREFIX=$RELEASE_DIR -DCMAKE_BUILD_TYPE=$BUILD_TYPE
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment