mirror of
https://github.com/Polprzewodnikowy/SummerCart64.git
synced 2024-12-18 01:01:51 +01:00
421d0438f3
This PR completely removes `task.c / task.h` from `sw/controller` STM32 code. Additionally, these changes were implemented: - Updated IPL3 - Added new diagnostic data (voltage and temperature) readout commands for USB and N64 - Fixed some issues with FlashRAM save type - Joybus timings were relaxed to accommodate communication with unsynchronized master controller (like _Datel Game Killer_, thanks @RWeick) - N64 embedded test program now waits for release of button press to proceed - Fixed issue where, in rare circumstances, I2C peripheral in STM32 would get locked-up on power-up - LED blinking behavior on SD card access was changed - LED blink duration on save writeback has been extended - Minor fixes through the entire of hardware abstraction layer for STM32 code - Primer now correctly detects issues with I2C bus during first time programming - `primer.py` script gives more meaningful error messages - Fixed bug where RTC time was always written on N64FlashcartMenu boot - sc64deployer now displays "Diagnostic data" instead of "MCU stack usage"
43 lines
918 B
Bash
Executable File
43 lines
918 B
Bash
Executable File
#!/bin/bash
|
|
|
|
BUILDER_IMAGE="ghcr.io/polprzewodnikowy/sc64env:v1.9"
|
|
|
|
pushd $(dirname $0) > /dev/null
|
|
|
|
GIT_BRANCH=$(git rev-parse --abbrev-ref HEAD)
|
|
GIT_TAG=$(git describe --tags 2> /dev/null)
|
|
GIT_SHA=$(git rev-parse HEAD)
|
|
GIT_MESSAGE=$(git log --oneline --format=%B -n 1 HEAD | head -n 1)
|
|
|
|
if [ -t 1 ]; then
|
|
DOCKER_OPTIONS="-it"
|
|
fi
|
|
|
|
SECONDS=0
|
|
|
|
docker run \
|
|
$DOCKER_OPTIONS \
|
|
--rm \
|
|
--user $(id -u):$(id -g) \
|
|
--mac-address ${MAC_ADDRESS:-F8:12:34:56:78:90} \
|
|
-v "$(pwd)"/fw/project/lcmxo2/license.dat:/flexlm/license.dat \
|
|
-v "$(pwd)":/workdir \
|
|
-h=`hostname` \
|
|
-e GIT_BRANCH="$GIT_BRANCH" \
|
|
-e GIT_TAG="$GIT_TAG" \
|
|
-e GIT_SHA="$GIT_SHA" \
|
|
-e GIT_MESSAGE="$GIT_MESSAGE" \
|
|
-e SC64_VERSION=${SC64_VERSION:-""} \
|
|
$BUILDER_IMAGE \
|
|
./build.sh $@
|
|
|
|
BUILD_ERROR=$?
|
|
|
|
echo "Build took $SECONDS seconds"
|
|
|
|
popd > /dev/null
|
|
|
|
if [ $BUILD_ERROR -ne 0 ]; then
|
|
exit -1
|
|
fi
|