Skip to content

Commit

Permalink
Tools: Carbonix board Build script
Browse files Browse the repository at this point in the history
This script will compile boards related to carbonix passed in command line.
Mainly build to be used by CI for compare no code change

SW-45
  • Loading branch information
loki077 committed Jan 8, 2024
1 parent 26b8f58 commit f815542
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions Tools/Carbonix_scripts/carbonix_board_build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
#!/bin/bash

# Exit immediately if a command exits with a non-zero status
set -e

# The board to build for is passed as an argument to the script
BOARD=$1

if [ "$BOARD" == "CubeOrange" ] || [ "$BOARD" == "CarbonixCubeOrange" ] || [ "$BOARD" == "sitl" ]
then
echo "Compiling Plane for $BOARD..."
./Tools/scripts/build_bootloaders.py "$BOARD"
./waf configure --board "$BOARD"
./waf plane
else
echo "Compiling AP_Periph for $BOARD..."
./Tools/scripts/build_bootloaders.py "$BOARD"
./waf configure --board "$BOARD"
./waf AP_Periph
fi

echo "Build for $BOARD completed."

0 comments on commit f815542

Please sign in to comment.