summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSolomon Peachy <pizza@shaftnet.org>2020-01-01 23:25:55 -0500
committerSolomon Peachy <pizza@shaftnet.org>2020-01-01 23:25:55 -0500
commitea75e0f700c18dc1615d1e7fa72c5663558ce292 (patch)
tree62b0fa9b460a6f0e7bd7393e2200d852c973eaa2
parent660ce9f35a2db0c61c95866c9ebc81c03c81662f (diff)
downloadmcu_base-master.tar.gz
mcu_base-master.tar.bz2
mcu_base-master.zip
Error out sanely if we don't have some necessary stuff definedHEADmaster
-rw-r--r--Makefile4
1 files changed, 4 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index aa62695..9160060 100644
--- a/Makefile
+++ b/Makefile
@@ -4,6 +4,10 @@
-include Makefile.opts
+ifeq ($(MCU),)
+$(error Must set 'MCU' in Makefile.opts; see 'BUILD' file)
+endif
+
# Toolchain - Don't change this unless you are sure what you're doing!
TOOLCHAIN_CONFIG=toolchain-$(MCU_CORE).config
TOOLCHAIN_SRC_DIR=crosstool-ng