1
0
Fork 0
mirror of https://github.com/iNavFlight/inav.git synced 2025-07-18 05:45:28 +03:00

Get setting default values from settings.yaml (#6595)

* Get setting default values from settings.yaml

* settings: Make the generator more robust and versatile

- Add support for resolving types and values in multiple compilers
- Add support for resolving types and values in clang 10
- Add support for using the host compiler for resolving the settings

This allows us to run the generator for the unit tests, since they now
need the settings_generated.h file to get the default setting values
from it.

* Fix regexps in settings.rb and add execution bit

* Fix git revision issue

* Fix issue with settings validation

* Fix issue with targets not defining USE_MAG

Co-authored-by: Alberto García Hierro <alberto@garciahierro.com>
This commit is contained in:
Michel Pastor 2021-04-07 17:48:09 +02:00 committed by GitHub
parent 7b705bccac
commit fc0e5e2741
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
85 changed files with 1708 additions and 1875 deletions

View file

@ -36,7 +36,10 @@ class Compiler
# on Windows if PATH contains spaces.
#dirs = ((ENV["CPP_PATH"] || "") + File::PATH_SEPARATOR + (ENV["PATH"] || "")).split(File::PATH_SEPARATOR)
dirs = ((ENV["CPP_PATH"] || "") + File::PATH_SEPARATOR + (ENV["PATH"] || "")).split(File::PATH_SEPARATOR)
bin = "arm-none-eabi-g++"
bin = ENV["SETTINGS_CXX"]
if bin.empty?
bin = "arm-none-eabi-g++"
end
dirs.each do |dir|
p = File.join(dir, bin)
['', '.exe'].each do |suffix|