diff options
| author | Simon John <git@the-jedi.co.uk> | 2015-03-26 23:17:05 +0000 |
|---|---|---|
| committer | Simon John <git@the-jedi.co.uk> | 2015-03-26 23:17:05 +0000 |
| commit | 8606592063eab7cd25fd87eea732a47d297f49e3 (patch) | |
| tree | 634ed1d5e704c73992c95652351966ca2bca0371 /Arduino.mk | |
| parent | ade0589a162caff55b9da0756af3ba2995dccf62 (diff) | |
Added BOARD_SUB to OBJDIR so that when changing sub boards we don't accidentally overwrite
existing builds.
E.g. mega1280 and mega2560 previously *both* created a "build-mega" directory,
now they'll create build-mega-mega2560 and build-mega-mega1280
Only applies to 1.5+ of course, and only when BOARD_SUB is used. 1.0 will still
create build-mega2560 and build-mega1280 directories (just BOARD_TAG)
Diffstat (limited to 'Arduino.mk')
| -rw-r--r-- | Arduino.mk | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -688,6 +688,9 @@ endif # Everything gets built in here (include BOARD_TAG now) ifndef OBJDIR OBJDIR = build-$(BOARD_TAG) + ifdef BOARD_SUB + OBJDIR = build-$(BOARD_TAG)-$(BOARD_SUB) + endif $(call show_config_variable,OBJDIR,[COMPUTED],(from BOARD_TAG)) else $(call show_config_variable,OBJDIR,[USER]) |
