rusefi-1/firmware
David Holdeman 15e44ae9cc
Use github actions to build and upload bundles (#1583)
* add env var to skip upload

* remove checking from compile.bat

* working on push.yaml

* finish sorting

* progress

* rename push to builds

* rename push to builds

* Add skip upload env var

* fix pull_request name

* fixed typo and changed name

* fixed indentation and runs-on

* try different env var setup

* add nucleos and switch to underscore

* add quotes

* remove boards that were commented

* remove boards that were commented

* fix project board name

* fixed variable name

* add ini-file and console-settings

* try installing gcc-multilib first

* Install g++-multilib as well

* remove unnecessary export

* fixed exit numbers

* change to different env setup

* add simulator and console compilation to board bundles

* changed OS and added linux simulator build

* add checkout and missing colon

* add gcc-multilib installes

* Install mingw

* fixed install

* remove mingw from linux sim and call compile directly

* change directory

* moved envs to command

* debug ls

* debug ls

* set ftp vars

* add makefile debug info

* removed batchecks

* redirect stdout to easier see orrs

* change name

* remove redirect, add file inpection

* Add conditional project name

* Try software upgrade

* missing char

* update ine files

* try quotes

* add escapes

* add quotes

* add escapes and quotes

* remove quotes and escapes

* remove software upgrade

* ignore test 2

* update apt

* like this then

* forgot import

* fix case

* remove RUSEFI_SKIP_UPLOAD and check RUSEFI_FTP_SERVER instead

* break workflow back apart

* upload simulator artifact

* fixed operator

* update apt

* change paths

* Update build-firmware.yaml

* move update bundle to artifacts

* fix var name

* Install ncftp

* set env vars conditionally

* remove check so zips are created

* try things the github way and copy to primary

* re-enable test

* missing space
2020-07-08 11:10:24 -04:00
..
ChibiOS@1a2c5967dc
ChibiOS-Contrib@8f7c2d187b
bootloader Convert integration_and_primary_bundle scripts to sh (#1562) 2020-07-03 11:03:50 -04:00
config Use github actions to build and upload bundles (#1583) 2020-07-08 11:10:24 -04:00
console plumb new load channels (#1573) 2020-07-05 16:25:19 -04:00
controllers migrate amazing idle from FSIO to less opaque TS #1581 2020-07-08 01:12:08 -04:00
development connecting time units 2020-05-26 01:08:21 -04:00
docs
ext
ext_algo
hw_layer docs 2020-07-04 21:38:52 -04:00
iar_egt better file name 2020-05-25 13:02:05 -04:00
init better file name 2020-05-25 13:02:05 -04:00
integration migrate amazing idle from FSIO to less opaque TS #1581 2020-07-07 23:01:14 -04:00
tunerstudio Auto-generated configs and docs 2020-07-08 03:03:03 +00:00
util idle_min through FSIO not working as intended #1553 2020-07-04 21:32:12 -04:00
.cproject
.gitattributes is this the problem? 2020-06-16 14:19:40 -04:00
.gitignore XML export progress 2020-05-20 01:24:26 -04:00
.project
Doxyfile
DoxygenLayout.xml
Makefile Makefile clean-up 2020-05-25 13:42:55 -04:00
build-notes.txt
clean.bat Convert jenkins build_extra_bundles scripts to sh (#1554) 2020-07-01 14:09:01 -04:00
clean.sh Convert jenkins build_extra_bundles scripts to sh (#1554) 2020-07-01 14:09:01 -04:00
clean_build.bat
clean_compile_two_versions.bat Convert jenkins build_extra_bundles scripts to sh (#1554) 2020-07-01 14:09:01 -04:00
clean_compile_two_versions.sh Fix 1575 (#1578) 2020-07-06 18:46:26 -04:00
compile.bat
compile_and_program.bat
cov_config.bat
cov_run.bat
coverity.yml
dump.bat
dump_iar.bat
dump_release.bat
egt2can.cpp
exception.txt
flash.bat
flash_dfu.bat
flash_dfu.sh
flash_erase407.bat Convert integration_and_primary_bundle scripts to sh (#1562) 2020-07-03 11:03:50 -04:00
flash_erase407.sh Convert integration_and_primary_bundle scripts to sh (#1562) 2020-07-03 11:03:50 -04:00
flash_erase767.bat
flash_openocd407.bat Convert integration_and_primary_bundle scripts to sh (#1562) 2020-07-03 11:03:50 -04:00
flash_openocd407.sh Convert integration_and_primary_bundle scripts to sh (#1562) 2020-07-03 11:03:50 -04:00
flash_openocd767.bat
flash_reboot_dfu.bat
flash_release.bat
gen_config.bat generated 2020-07-06 01:06:27 -04:00
gen_config.sh migrate amazing idle from FSIO to less opaque TS #1581 2020-07-07 23:01:14 -04:00
gen_config_board.bat Convert jenkins build_extra_bundles scripts to sh (#1554) 2020-07-01 14:09:01 -04:00
gen_config_board.sh and now I need to get all this working again 2020-07-06 01:29:00 -04:00
gen_enum_to_string.bat more bash 2020-07-04 21:02:50 -04:00
gen_enum_to_string.sh typo kinetis 2020-07-05 00:20:51 -04:00
gen_firing_order.bat
gen_fsio_example.bat
gen_live_documentation.bat Convert jenkins build_extra_bundles scripts to sh (#1554) 2020-07-01 14:09:01 -04:00
gen_live_documentation.sh something was broken? 2020-07-06 02:05:34 -04:00
gen_ptrace_enums.bat
gen_signature.sh generated folder 2020-07-06 01:01:30 -04:00
gen_system_fsio.bat
gen_trigger_images.bat :) 2020-05-14 20:53:47 -04:00
generate_docs.bat
generate_memory_usage_report.bat
global.h nope, unit tests did not just fix themselves 2020-06-17 08:42:37 -04:00
globalaccess.h
kill_for_coverity.c
license.txt
main.cpp
main_hardfault.c
make4.bat
os_access.h
readme.md
reboot_ecu.bat
run_hw_test.bat
rusefi.cpp a few unneeded properties 2020-06-13 22:46:10 -04:00
rusefi.h
rusefi.mk
rusefi_rules.mk
svnversion.h poke 2020-07-06 02:11:12 -04:00
update_version.bat Convert jenkins build_extra_bundles scripts to sh (#1554) 2020-07-01 14:09:01 -04:00
update_version.sh fix git command (#1531) 2020-06-22 18:43:01 -04:00

readme.md

Doxygen

Q&A on source code

See also ../unit_tests

This directory contains the source code for the RusEFI firmware.

The ideal is that typical end users should be able to use pre-built firmware. They should not need to modify or even rebuild from the source code for basic use, but building from the source code provides the opportunity for optimization, supporting unexpected engine configurations, and specialized enhancements.

TL;DR

make PROJECT_BOARD=microrusefi PROJECT_CPU=ARCH_STM32F4

Environment

Rebuilding from source code requires this firmware, a modern C/C++ compiler for embedded ARM systems, and a platform that supports 'make' based builds.

While many compilers have the potential to work, we suggest using the official ARM version of GCC available at launchpad.net.

Linux and MacOS systems should have the software development tools, primarily 'make', pre-installed or readily installed. MS-Windows requires selecting and installing a Unix-compatible system environment.

Note that the developers are volunteers, with varied motivations. These motivations often include using leading-edge language and build system concepts, requiring recent versions of tools. Should you encounter build problems, review the latest version of this document.

Expected Future Changes

The firmware build is moving toward a system that separates board features from processor features. This will require specifying both the board type and specific processor.

The existing system evolved based on the original RusEFI boards. Those used 'STM32 Discovery' development boards plugged into base boards that held the ECU-specific chips. That approach resulted in hard-coded assumption about pin assignments, and associations of hardware with a specific processor variant. That legacy is slowly being cleaned up, but is still evident in some settings and limitations.