Files
hsb/S - Software/0 - HSB MRTS Kathode-MCP/3 - Implementation/0 - Code/Makefile
mmi 5e29b31c8c Fixed language problems. Menu is totally independent from constant strings now, all messages are taken from dedicated include file "MenuText.h"
Makefile is adapted

Added "Dispay_writeCentered" function, which safes a lot of code

git-svn-id: https://svn.vbchaos.nl/svn/hsb/trunk@281 05563f52-14a8-4384-a975-3d1654cca0fa
2017-11-17 13:51:41 +00:00

65 lines
1.5 KiB
Makefile

# Define release version for firmware here
RELEASE_PRODUCT = \""S0\""
RELEASE_MAJOR = 0
RELEASE_MINOR = 9
RELEASE_BRANCH = 0
RELEASE_PATCH = 4
# Define the platform to use
PLATFORM_OLIMEX_STM32_H107 = OLI_STM32_H107
# Define language possibilities
LANGUAGE_ENGLISH = 0
LANGUAGE_FRENCH = 1
export RELEASE_DEFINES = \
-DRELEASE_PRODUCT=$(RELEASE_PRODUCT) \
-DRELEASE_MAJOR=$(RELEASE_MAJOR) \
-DRELEASE_MINOR=$(RELEASE_MINOR) \
-DRELEASE_BRANCH=$(RELEASE_BRANCH) \
-DRELEASE_PATCH=$(RELEASE_PATCH) \
export PLATFORM = -D$(PLATFORM_OLIMEX_STM32_H107)
export LANGUAGE = -DLANGUAGE=$(LANGUAGE_ENGLISH)
# export LANGUAGE = -DLANGUAGE=$(LANGUAGE_FRENCH)
export ADDITIONAL_SWITCHES = \
-DENABLE_SERIAL_LOGGING
BINARY = hsb_mrts_$(PLATFORM_OLIMEX_STM32_H107).bin
all:
$(MAKE) pho_hsb_olimex_stm32_h107
pho_hsb_olimex_stm32_h107:
@echo ------------------------------------------
@echo MAKE: $@
@echo ------------------------------------------
$(MAKE) -C STM32F10x_StdPeriph_Lib_V3.5.0
$(MAKE) -C Platform
$(MAKE) -C HAL
$(MAKE) -C hsb-mrts
flash:
openocd -f /usr/share/openocd/scripts/board/stm32f1discovery.cfg \
-c "init" \
-c "reset halt" \
-c "flash write_image erase $(BINARY) 0x08000000" \
-c "verify_image $(BINARY) 0x08000000" \
-c "reset run" \
-c "shutdown"
clean:
$(MAKE) -C STM32F10x_StdPeriph_Lib_V3.5.0 clean
$(MAKE) -C HAL clean
$(MAKE) -C Platform clean
$(MAKE) -C hsb-mrts clean
.PHONY: all clean