Skip to content

Commit de094bf

Browse files
committed
Update.
1 parent 4b1d651 commit de094bf

File tree

2 files changed

+163
-11
lines changed

2 files changed

+163
-11
lines changed

config/package_cosa-1.1.1_index.json

Lines changed: 129 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,129 @@
1+
{
2+
"packages": [
3+
{
4+
"name": "Cosa",
5+
"maintainer": "Mikael Patel",
6+
"websiteURL": "https://github.com/mikaelpatel/Cosa",
7+
"email": "[email protected]",
8+
"help": {
9+
"online": "https://dl.dropboxusercontent.com/u/993383/Cosa/doc/html/index.html"
10+
},
11+
"platforms": [
12+
{
13+
"name": "Cosa",
14+
"architecture": "avr",
15+
"version": "1.1.1",
16+
"category": "Cosa",
17+
"help": {
18+
"online": "https://dl.dropboxusercontent.com/u/993383/Cosa/doc/html/index.html"
19+
},
20+
"url": "https://github.com/mikaelpatel/Cosa/archive/v1.1.1a.zip",
21+
"archiveFileName": "Cosa-1.1.1a.zip",
22+
"checksum": "SHA-256:3334c77f5e5f44e799d45b6c2ff8993b730fe21a1308b5a6df304582fd2189db",
23+
"size": "2069014",
24+
"boards": [
25+
{"name" : "AdaFruit ATmega32U4"},
26+
{"name" : "Anarduino MiniWireless"},
27+
{"name" : "Arduino Diecimila"},
28+
{"name" : "Arduino Duemilanove"},
29+
{"name" : "Arduino Leonardo"},
30+
{"name" : "Arduino Mega 1280"},
31+
{"name" : "Arduino Mega 2560"},
32+
{"name" : "Arduino Micro"},
33+
{"name" : "Arduino Nano"},
34+
{"name" : "Arduino Pro Micro"},
35+
{"name" : "Arduino Pro Mini"},
36+
{"name" : "Arduino Uno"},
37+
{"name" : "ATtinyX4"},
38+
{"name" : "ATtinyX5"},
39+
{"name" : "ATtinyX61"},
40+
{"name" : "ATmega328"},
41+
{"name" : "ATmega1284"},
42+
{"name" : "ITEAD Studio IBoard"},
43+
{"name" : "LilyPad Arduino"},
44+
{"name" : "LilyPad Arduino USB"},
45+
{"name" : "LowPowerLab Moteino"},
46+
{"name" : "LowPowerLab Moteino Mega"},
47+
{"name" : "Pinoccio Scout"},
48+
{"name" : "Microduino-Core"},
49+
{"name" : "Microduino-Core32u4"},
50+
{"name" : "Microduino-Core+"},
51+
{"name" : "PJRC Teensy 2.0"},
52+
{"name" : "PJRC Teensy++ 2.0"},
53+
{"name" : "Wicked Device WildFire V3"}
54+
],
55+
"toolsDependencies": [
56+
{
57+
"packager": "arduino",
58+
"name": "avr-gcc",
59+
"version": "4.8.1-arduino5"
60+
},
61+
{
62+
"packager": "arduino",
63+
"name": "avrdude",
64+
"version": "6.0.1-arduino5"
65+
}
66+
]
67+
},
68+
{
69+
"name": "Cosa",
70+
"architecture": "avr",
71+
"version": "1.1.0",
72+
"category": "Cosa",
73+
"help": {
74+
"online": "https://dl.dropboxusercontent.com/u/993383/Cosa/doc/html/index.html"
75+
},
76+
"url": "https://github.com/mikaelpatel/Cosa/archive/v1.1.0.zip",
77+
"archiveFileName": "Cosa-1.1.0.zip",
78+
"checksum": "SHA-256:0b604d54c21f6a88482d6417eba453a5023119b3120736745af43d65738ec3d0",
79+
"size": "1994386",
80+
"boards": [
81+
{"name" : "AdaFruit ATmega32U4"},
82+
{"name" : "Anarduino MiniWireless"},
83+
{"name" : "Arduino Diecimila"},
84+
{"name" : "Arduino Duemilanove"},
85+
{"name" : "Arduino Leonardo"},
86+
{"name" : "Arduino Mega 1280"},
87+
{"name" : "Arduino Mega 2560"},
88+
{"name" : "Arduino Micro"},
89+
{"name" : "Arduino Nano"},
90+
{"name" : "Arduino Pro Micro"},
91+
{"name" : "Arduino Pro Mini"},
92+
{"name" : "Arduino Uno"},
93+
{"name" : "ATtinyX4"},
94+
{"name" : "ATtinyX5"},
95+
{"name" : "ATtinyX61"},
96+
{"name" : "ATmega328"},
97+
{"name" : "ATmega1284"},
98+
{"name" : "ITEAD Studio IBoard"},
99+
{"name" : "LilyPad Arduino"},
100+
{"name" : "LilyPad Arduino USB"},
101+
{"name" : "LowPowerLab Moteino"},
102+
{"name" : "LowPowerLab Moteino Mega"},
103+
{"name" : "Pinoccio Scout"},
104+
{"name" : "Microduino-Core"},
105+
{"name" : "Microduino-Core32u4"},
106+
{"name" : "Microduino-Core+"},
107+
{"name" : "PJRC Teensy 2.0"},
108+
{"name" : "PJRC Teensy++ 2.0"},
109+
{"name" : "Wicked Device WildFire V3"}
110+
],
111+
"toolsDependencies": [
112+
{
113+
"packager": "arduino",
114+
"name": "avr-gcc",
115+
"version": "4.8.1-arduino5"
116+
},
117+
{
118+
"packager": "arduino",
119+
"name": "avrdude",
120+
"version": "6.0.1-arduino5"
121+
}
122+
]
123+
}
124+
],
125+
"tools": [
126+
]
127+
}
128+
]
129+
}

config/platform.txt-classic

Lines changed: 34 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
# @file platform.txt-classic
2-
# @version 1.0
1+
# @file platform.txt
2+
# @version 2.0
33
#
44
# @section License
5-
# Copyright (C) 2014, Mikael Patel
5+
# Copyright (C) 2014-2015, Mikael Patel
66
#
77
# This library is free software; you can redistribute it and/or
88
# modify it under the terms of the GNU Lesser General Public
@@ -27,13 +27,14 @@
2727
# This file is part of the Arduino Che Cosa project.
2828

2929
name=Cosa AVR Boards
30-
version=1.0
30+
version=2.0
3131

3232
# AVR compile variables
3333
# ---------------------
3434

3535
# Default "compiler.path" is correct, change only if you want to overidde the initial value
36-
compiler.path={runtime.ide.path}/hardware/tools/avr/bin/
36+
# compiler.path={runtime.ide.path}/hardware/tools/avr/bin/
37+
compiler.path={runtime.tools.avr-gcc.path}/bin/
3738
compiler.c.cmd=avr-gcc
3839
compiler.c.flags=-c -g -Os -Wall -ffunction-sections -fdata-sections -MMD
3940
compiler.c.elf.flags=-Os -Wl,--gc-sections
@@ -42,6 +43,7 @@ compiler.S.flags=-c -g -assembler-with-cpp
4243
compiler.cpp.cmd=avr-g++
4344
compiler.cpp.flags=-c -g -Os -Wall -fno-exceptions -ffunction-sections -fdata-sections -MMD
4445
compiler.ar.cmd=avr-ar
46+
# compiler.ar.cmd=avr-gcc-ar
4547
compiler.ar.flags=rcs
4648
compiler.objcopy.cmd=avr-objcopy
4749
compiler.objcopy.eep.flags=-O ihex -j .eeprom --set-section-flags=.eeprom=alloc,load --no-change-warnings --change-section-lma .eeprom=0
@@ -51,13 +53,13 @@ compiler.ldflags=
5153
compiler.size.cmd=avr-size
5254

5355
# This can be overridden in boards.txt
54-
build.extra_flags=
56+
build.extra_flags="-I{build.path}"
5557

5658
# These can be overridden in platform.local.txt
57-
compiler.c.extra_flags=-Wextra -flto
58-
compiler.c.elf.extra_flags=-w -Wl,-relax -flto
59+
compiler.c.extra_flags=-Wextra
60+
compiler.c.elf.extra_flags=-w
5961
compiler.S.extra_flags=
60-
compiler.cpp.extra_flags=-Wextra -flto -std=gnu++11 -felide-constructors -mcall-prologues
62+
compiler.cpp.extra_flags=-Woverloaded-virtual -Wextra -std=gnu++11 -felide-constructors -fno-implement-inlines -fno-rtti -fno-threadsafe-statics -mcall-prologues
6163
compiler.ar.extra_flags=
6264
compiler.objcopy.eep.extra_flags=
6365
compiler.elf2hex.extra_flags=
@@ -95,8 +97,13 @@ recipe.size.regex.eeprom=^(?:\.eeprom)\s+([0-9]+).*
9597
# AVR Uploader/Programmers tools
9698
# ------------------------------
9799

98-
tools.avrdude.cmd.path={runtime.ide.path}/hardware/tools/avr/bin/avrdude
99-
tools.avrdude.config.path={runtime.ide.path}/hardware/tools/avr/etc/avrdude.conf
100+
tools.avrdude.path={runtime.tools.avrdude.path}
101+
tools.avrdude.cmd.path={path}/bin/avrdude
102+
# tools.avrdude.config.path={path}/etc/avrdude.conf
103+
tools.avrdude.config.path={runtime.platform.path}/build/avrdude.conf
104+
105+
# tools.avrdude.cmd.path={runtime.ide.path}/hardware/tools/avr/bin/avrdude
106+
# tools.avrdude.config.path={runtime.ide.path}/hardware/tools/avr/etc/avrdude.conf
100107

101108
tools.avrdude.upload.params.verbose=-v -v -v -v
102109
tools.avrdude.upload.params.quiet=-q -q
@@ -119,3 +126,19 @@ tools.avrdude.bootloader.pattern="{cmd.path}" "-C{config.path}" {bootloader.verb
119126
# - from numeric vendor ID, set to Unknown otherwise
120127
build.usb_manufacturer=
121128
build.usb_flags=-DUSB_VID={build.vid} -DUSB_PID={build.pid} '-DUSB_MANUFACTURER={build.usb_manufacturer}' '-DUSB_PRODUCT={build.usb_product}'
129+
130+
# ctags
131+
# ------------------------------
132+
tools.ctags.path={runtime.tools.ctags.path}
133+
tools.ctags.cmd.path={path}/ctags
134+
tools.ctags.pattern="{cmd.path}" -u --language-force=c++ -f - --c++-kinds=svpf --fields=KSTtzns "{source_file}"
135+
136+
# additional entries
137+
tools.avrdude.path={runtime.tools.avrdude.path}
138+
139+
preproc.includes.flags=-w -x c++ -M -MG -MP -mmcu={build.mcu}
140+
recipe.preproc.includes="{compiler.path}{compiler.cpp.cmd}" {preproc.includes.flags} -DF_CPU={build.f_cpu} -DARDUINO={runtime.ide.version} {compiler.cpp.extra_flags} {build.extra_flags} {includes} "{source_file}"
141+
142+
preproc.macros.flags=-w -x c++ -E -CC -mmcu={build.mcu}
143+
preproc.macros.compatibility_flags={build.mbed_api_include} {build.nRF51822_api_include} {build.ble_api_include} {compiler.libsam.c.flags} {compiler.arm.cmsis.path} {build.variant_system_include}
144+
recipe.preproc.macros="{compiler.path}{compiler.cpp.cmd}" {compiler.cpreprocessor.flags} {compiler.cpp.flags} {preproc.macros.flags} -DF_CPU={build.f_cpu} -DARDUINO={runtime.ide.version} {compiler.cpp.extra_flags} {build.extra_flags} {preproc.macros.compatibility_flags} {includes} "{source_file}"

0 commit comments

Comments
 (0)