Skip to content
Snippets Groups Projects
Commit 439eec33 authored by bbartels's avatar bbartels
Browse files

Merge branch 'quad-cli-build' into 'master'

quad: add script to build Xilinx project from command line

See merge request !7
parents 07d93c16 23fb54eb
No related branches found
No related tags found
1 merge request!7quad: add script to build Xilinx project from command line
build: build:
stage: build stage: build
script: script:
- echo "It works." - bash ci-build.sh
# run tests using the binary built before # run tests using the binary built before
test: test:
stage: test stage: test
script: script:
- bash test-ci.sh - bash ci-test.sh
#!/bin/bash
PROJECT_ROOT=$(pwd)
export PROJECT_ROOT
# Quad
bash quad/ci-build.sh || exit 1
...@@ -4,4 +4,4 @@ PROJECT_ROOT=$(pwd) ...@@ -4,4 +4,4 @@ PROJECT_ROOT=$(pwd)
export PROJECT_ROOT export PROJECT_ROOT
# Quad # Quad
bash quad/test-ci.sh || exit 1 bash quad/ci-test.sh || exit 1
#!/bin/bash
QUAD_ROOT=$PROJECT_ROOT/quad
export QUAD_ROOT
# Build Quad code
cd $QUAD_ROOT/sw/modular_quad_pid/
bash build.sh || exit 1
...@@ -3,9 +3,11 @@ ...@@ -3,9 +3,11 @@
QUAD_ROOT=$PROJECT_ROOT/quad QUAD_ROOT=$PROJECT_ROOT/quad
export QUAD_ROOT export QUAD_ROOT
# Build Test Library
cd $QUAD_ROOT/lib/test cd $QUAD_ROOT/lib/test
make || exit 1 make || exit 1
# Test UART buffer
cd $QUAD_ROOT/sw/modular_quad_pid/test cd $QUAD_ROOT/sw/modular_quad_pid/test
make || exit 1 make || exit 1
./test_uart_buff || exit 1 ./test_uart_buff || exit 1
cd ..
sdk set_workspace .
sdk build_project -type app -name modular_quad_pid
cd ..
sdk set_workspace .
sdk build_project -type bsp -name system_bsp
cd ..
sdk set_workspace .
sdk create_bsp_project -name system_bsp -hwproject system_hw_platform -proc ps7_cortexa9_0 -os standalone
#!/bin/bash
source /remote/Xilinx/2015.4/SDK/2015.4/settings64.sh
echo "Building modular_quad_pid"
if [ ! -d ../.metadata ]; then
# Haven't configured XSDK environment yet. Do that now
ECLIPSE=/remote/Xilinx/2015.4/SDK/2015.4/eclipse/lnx64.o/eclipse
VM=/remote/Xilinx/2015.4/SDK/2015.4/tps/lnx64/jre/bin
WSPACE=$(dirname $0)/..
HW=$WSPACE/system_hw_platform
BSP=$WSPACE/system_bsp
APP=$WSPACE/modular_quad_pid
echo "Setting up dependencies for modular_quad_pid"
# Import the system_hw_platform into the workspace
$ECLIPSE -vm $VM -nosplash -application org.eclipse.cdt.managedbuilder.core.headlessbuild \
-import $HW \
-data $WSPACE \
-vmargs -Dorg.eclipse.cdt.core.console=org.eclipse.cdt.core.systemConsole || exit 1
# Create the BSP
xsct .create_bsp.tcl || exit 1
# Import the system_bsp and modular_quad_pid into workspace
$ECLIPSE -vm $VM -nosplash -application org.eclipse.cdt.managedbuilder.core.headlessbuild \
-import $BSP \
-import $APP \
-data $WSPACE \
-vmargs -Dorg.eclipse.cdt.core.console=org.eclipse.cdt.core.systemConsole || exit 1
# Build the BSP
xsct .build_bsp.tcl || exit 1
fi
xsct .build_app.tcl || exit 1
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