Variables populated from board.txt that have more than one = sign no longer parse correctly leading the Makefile to fail as MCU isn't set correctly and redundant and empty flags are added to the flags list.
Using gdm CPUFLAGS is parsed incompletely MCU is unset and gets set by Adruino.mk to the wrong value and lots of empty flags get propagated.
Change #580 seems to have broken this as while PARSE_TEENSY seems to handle parameters like teensy36.build.flags.cpu=-mthumb -mcpu=cortex-m4 -mfloat-abi=hard -mfpu=fpv4-sp-d16 -fsingle-precision-constant with more than one = sign correctly while PARSE_BOARD does not.
Original with PARSE_BOARD:
1> v CPUFLAGS
/home/deepak/projects/github.com/dselvan/open-sassy/arduino_makefiles/Teensy.mk:135: CPUFLAGS has value '-mthumb -mcpu'
2> v MCU
/home/deepak/projects/github.com/dselvan/open-sassy/arduino_makefiles/Teensy.mk:135: MCU has value ''
Modified with PARSE_TEENSY:
1> v CPUFLAGS
/home/deepak/projects/github.com/dselvan/open-sassy/arduino_makefiles/Teensy.mk:139: CPUFLAGS has value '-mthumb -mcpu=cortex-m4 -mfloat-abi=hard -mfpu=fpv4-sp-d16 -fsingle-precision-constant'
2> v MCU
/home/deepak/projects/github.com/dselvan/open-sassy/arduino_makefiles/Teensy.mk:139: MCU has value 'cortex-m4'
Reverting Teensy.mk to have a def for PARSE_TEENSY and using the old parse command fixes the issue.
OS: Linux Ubuntu 18.04 x86_64
Arduino IDE: 1.8.8
Makefile: Using the example Linux Makefile
Variables populated from board.txt that have more than one
=
sign no longer parse correctly leading the Makefile to fail asMCU
isn't set correctly and redundant and empty flags are added to the flags list.Using gdm
CPUFLAGS
is parsed incompletelyMCU
is unset and gets set by Adruino.mk to the wrong value and lots of empty flags get propagated.Change #580 seems to have broken this as while
PARSE_TEENSY
seems to handle parameters liketeensy36.build.flags.cpu=-mthumb -mcpu=cortex-m4 -mfloat-abi=hard -mfpu=fpv4-sp-d16 -fsingle-precision-constant
with more than one=
sign correctly whilePARSE_BOARD
does not.Original with PARSE_BOARD:
Modified with PARSE_TEENSY:
Reverting Teensy.mk to have a def for
PARSE_TEENSY
and using the old parse command fixes the issue.OS: Linux Ubuntu 18.04 x86_64 Arduino IDE: 1.8.8 Makefile: Using the example Linux Makefile