From a4e976739f554153d50f3b46241c653689a40f72 Mon Sep 17 00:00:00 2001
From: Lokesh-Ramina <loki077@gmail.com>
Date: Tue, 16 Jan 2024 18:39:09 -0800
Subject: [PATCH] Tools: Carbonix build script name change and remove dist
 clean

Carbonix_board_build.sh name changed to build_no_clean.sh for clarity of the purpose of file.

Also Removed the bootloader and board config as that triggers sub module compile which is not deterministic and causes a difference in build.

SW-46
---
 .../{carbonix_board_build.sh => build_no_clean.sh}          | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)
 rename Tools/Carbonix_scripts/{carbonix_board_build.sh => build_no_clean.sh} (70%)

diff --git a/Tools/Carbonix_scripts/carbonix_board_build.sh b/Tools/Carbonix_scripts/build_no_clean.sh
similarity index 70%
rename from Tools/Carbonix_scripts/carbonix_board_build.sh
rename to Tools/Carbonix_scripts/build_no_clean.sh
index 92ed2d9a22..f516940ed7 100755
--- a/Tools/Carbonix_scripts/carbonix_board_build.sh
+++ b/Tools/Carbonix_scripts/build_no_clean.sh
@@ -1,5 +1,7 @@
 #!/bin/bash
 
+# This file is mainly used by workflows/cx_build_compare.yml to build the firmware for a specific board without bootloader and clean.
+
 # Exit immediately if a command exits with a non-zero status
 set -e
 
@@ -9,13 +11,9 @@ 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