[conf] stm32: make it possible to configure lisa/m 1.0 to use luftboot and also print a message if luftboot is assumed to be installed when flashing

This commit is contained in:
Felix Ruess
2012-05-15 22:02:51 +02:00
parent 721e95aa66
commit dced4237a9
2 changed files with 11 additions and 2 deletions
+9 -2
View File
@@ -104,10 +104,16 @@ else
OOCD_BOARD = $($(TARGET).OOCD_BOARD)
endif
ifndef NO_LUFTBOOT
# default: assume the luftboot bootloader is used
# if luftboot is not used define NO_LUFTBOOT to a value != 0
OOCD_START_SECTOR = 4
else
ASSUMING_LUFTBOOT = "yes"
ifdef NO_LUFTBOOT
$(shell echo luftboot: $(NO_LUFTBOOT))
ifneq ($(NO_LUFTBOOT),0)
OOCD_START_SECTOR = 0
ASSUMING_LUFTBOOT = "no"
endif
endif
# input files
@@ -272,6 +278,7 @@ upload: $(OBJDIR)/$(TARGET).bin
else ifeq ($(FLASH_MODE),JTAG)
ifeq ($(BMP_PORT),)
upload: $(OBJDIR)/$(TARGET).hex
@echo "Assuming luftboot bootloader: $(ASSUMING_LUFTBOOT)"
@echo "Using OOCD = $(OOCD)"
@echo " OOCD\t$<"
$(Q)$(OOCD) -f interface/$(OOCD_INTERFACE).cfg \
+2
View File
@@ -8,7 +8,9 @@
BOARD=lisa_m
BOARD_VERSION=1.0
BOARD_CFG=\"boards/$(BOARD)_$(BOARD_VERSION).h\"
ifndef NO_LUFTBOOT
NO_LUFTBOOT=1
endif
ARCH=stm32
$(TARGET).ARCHDIR = $(ARCH)