Add explicit blank checks in the build system for user-set but blank variables that must not be blank.

This commit is contained in:
Dean Camera committed 2012-06-03 12:39:53 +00:00
1 parent 88425d7dab
commit 5af18ba288
5 files changed
+45 -14

No files matched your search

+9 -2
View File
@@ -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] :'