Merge pull request #336 from sej7278/master

Added support for VARIANT in submenu's

Also fixed sed issue on OSX (copyright symbol)
This commit is contained in:
Simon John 2015-03-28 16:34:58 +00:00
commit cfe83bca20
4 changed files with 14 additions and 3 deletions

View file

@ -577,7 +577,14 @@ ifeq ($(strip $(NO_CORE)),)
# Which variant ? This affects the include path # Which variant ? This affects the include path
ifndef VARIANT ifndef VARIANT
VARIANT = $(call PARSE_BOARD,$(BOARD_TAG),build.variant) VARIANT := $(call PARSE_BOARD,$(BOARD_TAG),build.variant)
ifndef VARIANT
# might be a submenu
VARIANT := $(call PARSE_BOARD,$(BOARD_TAG),menu.cpu.$(BOARD_SUB).build.variant)
endif
$(call show_config_variable,VARIANT,[COMPUTED],(from build.variant))
else
$(call show_config_variable,VARIANT,[USER])
endif endif
# see if we are a caterina device like leonardo or micro # see if we are a caterina device like leonardo or micro

View file

@ -31,6 +31,7 @@ I tried to give credit whenever possible. If I have missed anyone, kindly add it
- Tweak: Integration instructions for CodeBlocks IDE (Issue #321) (https://github.com/fbielejec) - Tweak: Integration instructions for CodeBlocks IDE (Issue #321) (https://github.com/fbielejec)
- Tweak: Add BOARD_SUB to OBJDIR if defined in 1.5+ (https://github.com/sej7278) - Tweak: Add BOARD_SUB to OBJDIR if defined in 1.5+ (https://github.com/sej7278)
- Tweak: Add = to PARSE_BOARD regex to make it less greedy and not match vid.0, vid.1 and vid (https://github.com/sej7278) - Tweak: Add = to PARSE_BOARD regex to make it less greedy and not match vid.0, vid.1 and vid (https://github.com/sej7278)
- Tweak: Added note about clock submenu's being used as F_CPU (https://github.com/sej7278)
- Fix: Improved Windows (Cygwin/MSYS) support (https://github.com/PeterMosmans) - Fix: Improved Windows (Cygwin/MSYS) support (https://github.com/PeterMosmans)
- Fix: Change "tinyladi" username to "ladislas" in HISTORY.md. (https://github.com/ladislas) - Fix: Change "tinyladi" username to "ladislas" in HISTORY.md. (https://github.com/ladislas)
@ -49,6 +50,8 @@ I tried to give credit whenever possible. If I have missed anyone, kindly add it
- Fix: Fixed PLATFORM_LIB support for 1.5+ and removed duplicate libs (https://github.com/sej7278) - Fix: Fixed PLATFORM_LIB support for 1.5+ and removed duplicate libs (https://github.com/sej7278)
- Fix: Added ARCHITECTURE to ALTERNATE_CORE_PATH to support 1.5+ cores like arduino-tiny (https://github.com/sej7278) - Fix: Added ARCHITECTURE to ALTERNATE_CORE_PATH to support 1.5+ cores like arduino-tiny (https://github.com/sej7278)
- Fix: Can now find IDE 1.5+ preferences.txt on Linux and Mac (https://github.com/sej7278) - Fix: Can now find IDE 1.5+ preferences.txt on Linux and Mac (https://github.com/sej7278)
- Fix: Added support for VARIANT being a submenu item in 1.6 cores like attiny (https://github.com/sej7278)
- Fix: Replaced copyright symbol causing sed problems on OSX (Issue #335). (https://github.com/sej7278)
### 1.3.4 (2014-07-12) ### 1.3.4 (2014-07-12)
- Tweak: Allow spaces in "Serial.begin (....)". (Issue #190) (https://github.com/pdav) - Tweak: Allow spaces in "Serial.begin (....)". (Issue #190) (https://github.com/pdav)

View file

@ -520,7 +520,8 @@ USB_PID = 0x8039
CPU speed in Hz CPU speed in Hz
Usually can be auto-detected as `build.f_cpu` from `boards.txt` Usually can be auto-detected as `build.f_cpu` from `boards.txt`, except in
some 1.6 cores like attiny where there is a clock submenu.
**Example:** **Example:**

View file

@ -1,5 +1,5 @@
/* /*
* © Anil Kumar Pugalia, 2010. Email: email@sarika-pugs.com * (c) Anil Kumar Pugalia, 2010. Email: email@sarika-pugs.com
* *
* ATmega48/88/168, ATmega16/32 * ATmega48/88/168, ATmega16/32
* *