Add explicit blank checks in the build system for user-set but blank variables that must not be blank.
This commit is contained in:
parent
88425d7dab
commit
5af18ba288
5 changed files with 45 additions and 14 deletions
|
|
@ -37,8 +37,15 @@ LUFA_BUILD_OPTIONAL_VARS +=
|
|||
# -----------------------------------------------------------------------------
|
||||
|
||||
# Sanity-check values of mandatory user-supplied variables
|
||||
MCU ?= $(error Makefile MCU value not set.)
|
||||
TARGET ?= $(error Makefile TARGET value not set.)
|
||||
MCU ?= $(error Makefile MCU value not set)
|
||||
TARGET ?= $(error Makefile TARGET value not set)
|
||||
|
||||
ifeq ($(MCU),)
|
||||
$(error Makefile MCU option cannot be blank)
|
||||
endif
|
||||
ifeq ($(TARGET),)
|
||||
$(error Makefile TARGET option cannot be blank)
|
||||
endif
|
||||
|
||||
# Output Messages
|
||||
MSG_COPY_CMD := ' [CP] :'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue