mirror of
https://github.com/qmk/qmk_firmware.git
synced 2026-10-23 17:32:30 +02:00
Add explicit blank checks in the build system for user-set but blank variables that must not be blank.
This commit is contained 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))
|
||||
|
||||
Reference in New Issue
Block a user