diff options
author | Dean Camera <dean@fourwalledcubicle.com> | 2012-06-02 12:04:34 +0000 |
---|---|---|
committer | Dean Camera <dean@fourwalledcubicle.com> | 2012-06-02 12:04:34 +0000 |
commit | fc3768733ee6204967234e2f0dabde6d6d80882e (patch) | |
tree | da3fb4e102378912d00958c13fb8a02be7e902ce /LUFA/Build/lufa.dfu.in | |
parent | 29874f6db7db635e3cb6ee39a595334fc1c6514a (diff) | |
download | lufa-fc3768733ee6204967234e2f0dabde6d6d80882e.tar.gz lufa-fc3768733ee6204967234e2f0dabde6d6d80882e.tar.bz2 lufa-fc3768733ee6204967234e2f0dabde6d6d80882e.zip |
Clean up ordering of build system module sanity checks.
Diffstat (limited to 'LUFA/Build/lufa.dfu.in')
-rw-r--r-- | LUFA/Build/lufa.dfu.in | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/LUFA/Build/lufa.dfu.in b/LUFA/Build/lufa.dfu.in index 8c478db84..c3a102be8 100644 --- a/LUFA/Build/lufa.dfu.in +++ b/LUFA/Build/lufa.dfu.in @@ -36,15 +36,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.)
+
# Output Messages
MSG_COPY_CMD = ' [CP] :'
MSG_REMOVE_CMD = ' [RM] :'
MSG_DFU_CMD = ' [DFU] :'
-# Sanity check the user MCU and TARGET makefile options
-MCU ?= $(error Makefile MCU value not set.)
-TARGET ?= $(error Makefile TARGET value not set.)
-
flip: $(TARGET).hex
@echo $(MSG_DFU_CMD) Programming FLASH with batchisp using \"$(TARGET).hex\"
batchisp -hardware usb -device $(MCU) -operation erase f
|