From 5d3ded340bc9250a755da2667d9b826d6c577636 Mon Sep 17 00:00:00 2001 From: rusefi Date: Sun, 27 Sep 2020 06:27:50 -0400 Subject: [PATCH] cypress into GHA #1819 --- .github/workflows/build-firmware.yaml | 2 +- .../config/boards/hellen/!compile_cypress.bat | 3 +++ .../config/boards/hellen/compile_cypress.sh | 19 +++++++++++++++++++ 3 files changed, 23 insertions(+), 1 deletion(-) create mode 100644 firmware/config/boards/hellen/!compile_cypress.bat create mode 100644 firmware/config/boards/hellen/compile_cypress.sh diff --git a/.github/workflows/build-firmware.yaml b/.github/workflows/build-firmware.yaml index 286c04e404..dcd0707854 100644 --- a/.github/workflows/build-firmware.yaml +++ b/.github/workflows/build-firmware.yaml @@ -17,7 +17,7 @@ jobs: include: # Board configurations - build-target: cypress - folder: hellen/cypress + folder: hellen - build-target: frankenso_na6 folder: frankenso diff --git a/firmware/config/boards/hellen/!compile_cypress.bat b/firmware/config/boards/hellen/!compile_cypress.bat new file mode 100644 index 0000000000..4d58da5df9 --- /dev/null +++ b/firmware/config/boards/hellen/!compile_cypress.bat @@ -0,0 +1,3 @@ +@echo off + +bash compile_cypress.sh diff --git a/firmware/config/boards/hellen/compile_cypress.sh b/firmware/config/boards/hellen/compile_cypress.sh new file mode 100644 index 0000000000..31b1e1555c --- /dev/null +++ b/firmware/config/boards/hellen/compile_cypress.sh @@ -0,0 +1,19 @@ +#!/bin/bash + +echo "Compiling for Cypress FM4 S6E2CxAH" +# TODO: somehow this -DDUMMY is helping us to not mess up the parameters, why?! +# https://github.com/rusefi/rusefi/issues/684 +export EXTRA_PARAMS="-DDUMMY -D__USE_CMSIS\ + -DEFI_ENABLE_ASSERTS=FALSE -DCH_DBG_ENABLE_CHECKS=FALSE -DCH_DBG_ENABLE_ASSERTS=FALSE -DCH_DBG_ENABLE_STACK_CHECK=FALSE -DCH_DBG_FILL_THREADS=FALSE -DCH_DBG_THREADS_PROFILING=FALSE\ + -DDEFAULT_ENGINE_TYPE=MINIMAL_PINS" + +export BUILDDIR="build" +export PROJECT_BOARD="hellen/cypress" +export PROJECT_CPU="cypress" +export USE_FATFS="no" +export USE_BOOTLOADER="no" +export DEBUG_LEVEL_OPT="-O2" + +cd ../../.. + +bash ./config/boards/common_make.sh