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

+6 -2
View File
@@ -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))