diff options
| author | George Harker <george@george-graphics.co.uk> | 2016-11-04 11:37:10 -0700 |
|---|---|---|
| committer | George Harker <george@george-graphics.co.uk> | 2016-11-04 11:37:10 -0700 |
| commit | bcf664079c9dcbc30a356d4adf2b2c3d161cd18a (patch) | |
| tree | f18ac939bd999c50607eb0fe22f4dd3669ad2d9b /Teensy.mk | |
| parent | 0c55418057b59929bda4c7840f303e4b1cf66cb1 (diff) | |
fix mcu
Diffstat (limited to 'Teensy.mk')
| -rw-r--r-- | Teensy.mk | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -179,6 +179,10 @@ LDFLAGS += -Wl,--gc-sections,--relax LINKER_SCRIPTS = -T${ARDUINO_CORE_PATH}/${AMCU}.ld OTHER_LIBS = $(call PARSE_TEENSY,$(BOARD_TAG),build.flags.libs) +CPUFLAGS = $(call PARSE_TEENSY,$(BOARD_TAG),build.flags.cpu) +# usually defined as per teensy31.build.mcu=mk20dx256 but that isn't valid switch +MCU := $(shell echo ${CPUFLAGS} | sed -n -e 's/.*-mcpu=\([a-zA-Z0-9_-]*\).*/\1/p') + ######################################################################## # some fairly odd settings so that 'make upload' works # |
