diff --git a/firmware/config/boards/atlas/board.mk b/firmware/config/boards/atlas/board.mk index f740a335bb..7fd3295659 100644 --- a/firmware/config/boards/atlas/board.mk +++ b/firmware/config/boards/atlas/board.mk @@ -13,6 +13,7 @@ DDEFS += -DHW_ATLAS=1 # Atlas needs networking library LWIP = yes +ALLOW_SHADOW = yes DDEFS += -DEFI_ETHERNET=TRUE DDEFS += -DSHORT_BOARD_NAME=atlas -DSTATIC_BOARD_ID=STATIC_BOARD_ID_ATLAS diff --git a/firmware/config/boards/nucleo_f429/board.mk b/firmware/config/boards/nucleo_f429/board.mk index cf5ff1a005..6b1590aadb 100644 --- a/firmware/config/boards/nucleo_f429/board.mk +++ b/firmware/config/boards/nucleo_f429/board.mk @@ -4,6 +4,7 @@ DDEFS += -DLED_CRITICAL_ERROR_BRAIN_PIN=Gpio::B14 # Enable ethernet LWIP = yes +ALLOW_SHADOW = yes DDEFS += -DEFI_ETHERNET=TRUE # This is an F429! diff --git a/firmware/config/boards/nucleo_f767/board.mk b/firmware/config/boards/nucleo_f767/board.mk index 812a284a34..d8ddd1bded 100644 --- a/firmware/config/boards/nucleo_f767/board.mk +++ b/firmware/config/boards/nucleo_f767/board.mk @@ -10,6 +10,7 @@ DDEFS += -DLED_CRITICAL_ERROR_BRAIN_PIN=Gpio::B14 # Enable ethernet LWIP = yes +ALLOW_SHADOW = yes DDEFS += -DEFI_ETHERNET=TRUE DEBUG_LEVEL_OPT = -Os -ggdb -g diff --git a/firmware/config/boards/nucleo_h743/board.mk b/firmware/config/boards/nucleo_h743/board.mk index c7d2b90fd5..c0d74450e9 100644 --- a/firmware/config/boards/nucleo_h743/board.mk +++ b/firmware/config/boards/nucleo_h743/board.mk @@ -6,6 +6,7 @@ DDEFS += -DLED_CRITICAL_ERROR_BRAIN_PIN=Gpio::B14 # Enable ethernet LWIP = yes +ALLOW_SHADOW = yes DDEFS += -DEFI_ETHERNET=TRUE DDEFS += -DFIRMWARE_ID=\"nucleo_h743\" diff --git a/firmware/rusefi_rules.mk b/firmware/rusefi_rules.mk index 8799aa5d3b..510a2332bc 100644 --- a/firmware/rusefi_rules.mk +++ b/firmware/rusefi_rules.mk @@ -1,5 +1,9 @@ # Warnings-as-errors... -RUSEFI_OPT = -Werror -Werror=shadow +RUSEFI_OPT = -Werror + +ifneq ($(ALLOW_SHADOW),yes) + RUSEFI_OPT += -Werror=shadow +endif # ...except these few RUSEFI_OPT += -Wno-error=unused-function -Wno-error=unused-variable -Wno-error=sign-compare -Wno-error=unused-parameter