aboutsummaryrefslogtreecommitdiffstats
path: root/LUFA/Build/lufa.sources.in
diff options
context:
space:
mode:
authorDean Camera <dean@fourwalledcubicle.com>2012-06-03 12:39:53 +0000
committerDean Camera <dean@fourwalledcubicle.com>2012-06-03 12:39:53 +0000
commit5af18ba2883d51c54bad8de23bcea01fb22c4daa (patch)
tree98fce7d63603d35191b69ffad7d0c4fcffe0b6e3 /LUFA/Build/lufa.sources.in
parent88425d7dabd07a712b32995a635a7f883ff5f726 (diff)
downloadlufa-5af18ba2883d51c54bad8de23bcea01fb22c4daa.tar.gz
lufa-5af18ba2883d51c54bad8de23bcea01fb22c4daa.tar.bz2
lufa-5af18ba2883d51c54bad8de23bcea01fb22c4daa.zip
Add explicit blank checks in the build system for user-set but blank variables that must not be blank.
Diffstat (limited to 'LUFA/Build/lufa.sources.in')
-rw-r--r--LUFA/Build/lufa.sources.in8
1 files changed, 6 insertions, 2 deletions
diff --git a/LUFA/Build/lufa.sources.in b/LUFA/Build/lufa.sources.in
index c189e792f..47cda0c99 100644
--- a/LUFA/Build/lufa.sources.in
+++ b/LUFA/Build/lufa.sources.in
@@ -36,8 +36,12 @@ LUFA_BUILD_OPTIONAL_VARS +=
# -----------------------------------------------------------------------------
# Sanity-check values of mandatory user-supplied variables
-ARCH ?= $(error Makefile ARCH value not set.)
-LUFA_PATH ?= $(error Makefile LUFA_PATH value not set.)
+ARCH ?= $(error Makefile ARCH value not set)
+LUFA_PATH ?= $(error Makefile LUFA_PATH value not set)
+
+ifeq ($(ARCH),)
+ $(error Makefile ARCH option cannot be blank)
+endif
# Allow LUFA_ROOT_PATH to be overridden elsewhere to support legacy LUFA makefiles
LUFA_ROOT_PATH ?= $(patsubst %/,%,$(LUFA_PATH))