Commit 12da566 1 parent 9d2d159 commit 12da566 Copy full SHA for 12da566
File tree 2 files changed +11
-3
lines changed
2 files changed +11
-3
lines changed Original file line number Diff line number Diff line change 5
5
# by default EXTRA_PARAMS is empty and we create 'debug' version of the firmware with additional assertions and statistics
6
6
# for 'release' options see 'clean_compile_two_versions.bat' file
7
7
8
- ifeq ($(DEBUG_LEVEL_OPT ) ,)
8
+ ifeq ($(DEBUG_LEVEL_BLT_OPT ) ,)
9
9
# this value would be used by default. For 'debug' configuration override with '-O0 -ggdb -g' or something along these lines
10
- DEBUG_LEVEL_OPT = -Os -ggdb -g
10
+ DEBUG_LEVEL_BLT_OPT = -Os -ggdb -g
11
11
DDEFS += -DEFI_ENABLE_ASSERTS=FALSE -DCH_DBG_ENABLE_ASSERTS=FALSE -DCH_DBG_ENABLE_STACK_CHECK=FALSE -DCH_DBG_FILL_THREADS=FALSE -DCH_DBG_THREADS_PROFILING=FALSE
12
12
endif
13
13
@@ -30,7 +30,7 @@ DDEFS += -DEFI_UNIT_TEST=0 -DEFI_PROD_CODE=1 -DEFI_SIMULATOR=0
30
30
31
31
# Compiler options here.
32
32
ifeq ($(USE_OPT ) ,)
33
- USE_OPT = $(EXTRA_PARAMS ) $(EXTRA_2_PARAMS ) $(EXTRA_3_PARAMS ) $(DEBUG_LEVEL_OPT ) $(RFLAGS ) -Wno-error=implicit-fallthrough -Wno-error=bool-operation -fomit-frame-pointer -falign-functions=16 -Werror -Wno-error=pointer-sign -Wno-error=unused-function -Wno-error=unused-variable -Wno-error=sign-compare -Wno-error=unused-parameter -Wno-error=missing-field-initializers -Werror=type-limits -Wno-error=strict-aliasing -Wno-error=attributes
33
+ USE_OPT = $(EXTRA_PARAMS ) $(EXTRA_2_PARAMS ) $(EXTRA_3_PARAMS ) $(DEBUG_LEVEL_BLT_OPT ) $(RFLAGS ) -Wno-error=implicit-fallthrough -Wno-error=bool-operation -fomit-frame-pointer -falign-functions=16 -Werror -Wno-error=pointer-sign -Wno-error=unused-function -Wno-error=unused-variable -Wno-error=sign-compare -Wno-error=unused-parameter -Wno-error=missing-field-initializers -Werror=type-limits -Wno-error=strict-aliasing -Wno-error=attributes
34
34
endif
35
35
36
36
# Configure the linker script to build the bootloader, not the firmware
Original file line number Diff line number Diff line change @@ -47,3 +47,11 @@ A: please remember about https://github.com/rusefi/rusefi/wiki/Hardware#q-this-i
47
47
# Q: I insist on custom
48
48
49
49
A: https://github.com/rusefi/rusefi/wiki/Custom-Firmware
50
+
51
+ # Q: I want to build the firmware in debug mode
52
+
53
+ A: check DEBUG_LEVEL_OPT on the .env file of your board
54
+
55
+ # Q: I want to build the bootloader firmware in debug mode
56
+
57
+ A: check or add DEBUG_LEVEL_BLT_OPT on the .env file of your board, is the same as DEBUG_LEVEL_OPT but only for the bootloader
You can’t perform that action at this time.
0 commit comments