mcu-defs.mk: Don't error out on clean target

Signed-off-by: Jan Lindemann <jan@janware.com>
This commit is contained in:
Jan Lindemann 2019-03-13 12:18:12 +00:00
commit 6f86a51783

View file

@ -8,16 +8,18 @@
include $(MODDIR)/make/mcu-tags.mk include $(MODDIR)/make/mcu-tags.mk
ifeq ($(MCU_BOARD_MODEL),) ifneq ($(MAKECMDGOALS),clean)
$(error MCU_BOARD_MODEL not specified) ifeq ($(MCU_BOARD_MODEL),)
endif $(error MCU_BOARD_MODEL not specified)
endif
ifeq ($(MCU_FLASH_OFFSET),)
$(error MCU_FLASH_OFFSET not specified) ifeq ($(MCU_FLASH_OFFSET),)
endif $(error MCU_FLASH_OFFSET not specified)
endif
ifeq ($(MCU_FLASH_SIZE),)
$(error MCU_FLASH_SIZE not specified) ifeq ($(MCU_FLASH_SIZE),)
$(error MCU_FLASH_SIZE not specified)
endif
endif endif
MCU_PRODUCT_TMPL_DIR ?= $(MODDIR)/tmpl/products MCU_PRODUCT_TMPL_DIR ?= $(MODDIR)/tmpl/products