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
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)
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