Simplify build system mandatory parameter/variable sanity checks.

This commit is contained in:
Dean Camera 2012-06-02 12:00:51 +00:00
parent 276eb35d68
commit 29874f6db7
5 changed files with 37 additions and 57 deletions

View file

@ -36,12 +36,8 @@ LUFA_BUILD_OPTIONAL_VARS +=
# -----------------------------------------------------------------------------
# Sanity check the user LUFA_PATH and ARCH makefile options
ifeq ($(LUFA_PATH),)
$(error Makefile LUFA_PATH value not set.)
endif
ifeq ($(ARCH),)
$(error Makefile ARCH value not set.)
endif
ARCH ?= $(error Makefile ARCH value not set.)
LUFA_PATH ?= $(error Makefile LUFA_PATH value not set.)
# Allow LUFA_ROOT_PATH to be overridden elsewhere to support legacy LUFA makefiles
LUFA_ROOT_PATH ?= $(LUFA_PATH)