mirror of https://github.com/rusefi/wideband.git
make bootloader optional
This commit is contained in:
parent
a61b23cd44
commit
e2fcaa40fc
|
@ -9,6 +9,9 @@ endif
|
||||||
|
|
||||||
BOARDDIR = boards/$(BOARD)
|
BOARDDIR = boards/$(BOARD)
|
||||||
|
|
||||||
|
# optionally include board.mk that sets per-board options
|
||||||
|
-include $(BOARDDIR)/board.mk
|
||||||
|
|
||||||
# Compiler options here.
|
# Compiler options here.
|
||||||
ifeq ($(USE_OPT),)
|
ifeq ($(USE_OPT),)
|
||||||
USE_OPT = -O2 -ggdb -fomit-frame-pointer -falign-functions=16 -fsingle-precision-constant
|
USE_OPT = -O2 -ggdb -fomit-frame-pointer -falign-functions=16 -fsingle-precision-constant
|
||||||
|
@ -50,6 +53,10 @@ ifeq ($(USE_SMART_BUILD),)
|
||||||
USE_SMART_BUILD = yes
|
USE_SMART_BUILD = yes
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
ifeq ($(USE_BOOTLOADER),)
|
||||||
|
USE_BOOTLOADER = no
|
||||||
|
endif
|
||||||
|
|
||||||
#
|
#
|
||||||
# Build global options
|
# Build global options
|
||||||
##############################################################################
|
##############################################################################
|
||||||
|
@ -177,8 +184,10 @@ UINCDIR =
|
||||||
# List the user directory to look for the libraries here
|
# List the user directory to look for the libraries here
|
||||||
ULIBDIR = $(BOARDDIR)
|
ULIBDIR = $(BOARDDIR)
|
||||||
|
|
||||||
# List all user libraries here
|
ifeq ($(USE_BOOTLOADER),yes)
|
||||||
ULIBS = boards/f0_module/bootloader/build/wideband_bootloader.o
|
ULIBS = boards/f0_module/bootloader/build/wideband_bootloader.o
|
||||||
|
USE_OPT += -Wl,--defsym=USE_BOOTLOADER=1
|
||||||
|
endif
|
||||||
|
|
||||||
#
|
#
|
||||||
# End of user section
|
# End of user section
|
||||||
|
|
|
@ -0,0 +1 @@
|
||||||
|
USE_BOOTLOADER = yes
|
|
@ -159,6 +159,7 @@ ULIBDIR =
|
||||||
# List all user libraries here
|
# List all user libraries here
|
||||||
# Add the search path of the firmware/ dir, we need wideband_layout.ld
|
# Add the search path of the firmware/ dir, we need wideband_layout.ld
|
||||||
ULIBS = -L..
|
ULIBS = -L..
|
||||||
|
USE_OPT += -Wl,--defsym=USE_BOOTLOADER=1
|
||||||
|
|
||||||
#
|
#
|
||||||
# End of user section
|
# End of user section
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
* STM32F042x6 memory setup.
|
* STM32F042x6 memory setup.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
blsize = 6k;
|
blsize = DEFINED(USE_BOOTLOADER) ? 6k : 0;
|
||||||
|
|
||||||
MEMORY
|
MEMORY
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue