chore: use Ninja for Win cpn and improve Python support (#6455)

This commit is contained in:
Raphael Coeffic
2025-07-27 11:50:22 +10:00
committed by GitHub
parent 23e3730289
commit 89f5d006c9
7 changed files with 312 additions and 126 deletions
+2 -21
View File
@@ -7,17 +7,6 @@ set -x
SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)"
. "$SCRIPT_DIR/build-common.sh"
# Allow variable core usage
# default uses all cpu cores
#
if [ -f /usr/bin/nproc ]; then
num_cpus=$(nproc)
elif [ -f /usr/sbin/sysctl ]; then
num_cpus=$(sysctl -n hw.logicalcpu)
else
num_cpus=2
fi
: "${CORES:=$num_cpus}"
# If no build target, exit
#: "${FLAVOR:=ALL}"
@@ -25,14 +14,6 @@ fi
for i in "$@"
do
case $i in
--jobs=*)
CORES="${i#*=}"
shift
;;
-j*)
CORES="${i#*j}"
shift
;;
-Wno-error)
WERROR=0
shift
@@ -100,8 +81,8 @@ do
fi
cmake ${BUILD_OPTIONS} "${SRCDIR}"
cmake --build . --target arm-none-eabi-configure
cmake --build arm-none-eabi -j"${CORES}" --target ${FIRMARE_TARGET}
cmake --build . --target arm-none-eabi-configure --parallel
cmake --build arm-none-eabi --target ${FIRMARE_TARGET} --parallel
rm -f CMakeCache.txt arm-none-eabi/CMakeCache.txt