defs-cpp.mk, mcu-defs.mk, rules.mk: Code beautification and re-ordering

Signed-off-by: Jan Lindemann <jan@janware.com>
This commit is contained in:
Jan Lindemann 2019-03-22 21:43:16 +00:00
commit ed76759a42
3 changed files with 79 additions and 91 deletions

View file

@ -6,19 +6,19 @@
# endif
#endef
ifneq ($(MAKECMDGOALS),clean)
ifeq ($(MCU_BOARD_MODEL),)
$(error MCU_BOARD_MODEL not specified)
endif
ifeq ($(MCU_FLASH_OFFSET),)
$(error MCU_FLASH_OFFSET not specified)
endif
ifeq ($(MCU_FLASH_SIZE),)
$(error MCU_FLASH_SIZE not specified)
endif
endif
#ifneq ($(MAKECMDGOALS),clean)
# ifeq ($(MCU_BOARD_MODEL),)
# $(error MCU_BOARD_MODEL not specified)
# endif
#
# ifeq ($(MCU_FLASH_OFFSET),)
# $(error MCU_FLASH_OFFSET not specified)
# endif
#
# ifeq ($(MCU_FLASH_SIZE),)
# $(error MCU_FLASH_SIZE not specified)
# endif
#endif
MCU_PRODUCT_TMPL_DIR ?= $(MODDIR)/tmpl/products