Added latest arduino (1.6.9)
This commit is contained in:
@@ -0,0 +1,6 @@
|
||||
AUX arduino-core-1.6.9-platform.patch 1102 SHA256 f6be9de0fadac8a462e1fb419517aaf7fa65424bb839946c5af93d2ae8d65d84 SHA512 50744007c6445fb76466c0446fb2c5cc2bb9e5fa0dda1c599a90b71aae6f7a5240ac1253845807b82ca8c74a0137d81019db3372277ff1f35c182eb6d8facccc WHIRLPOOL 4b7a72464247548f917589eb99699a51ff381707e5cf20f93b0536c07db48c208b30b3c4766b6013f98d0c8b0c0fa272fc81cf2e353f922e43a8844e958adbb8
|
||||
AUX platform-1.6.9/platform.keys.rewrite.txt 7194 SHA256 3669990c14facbbf13cde0483f4f7961b958b6ffd17f6115b08a3a43f0e63c0c SHA512 913b183eb5828fbebe565c259cd199e7c97d56af8e13d0b516fe825716feecdba8cd298b97bd24efac2612eae8c4f30c35f9b82d7499a6ae6256e1ee48510470 WHIRLPOOL 0c836b2d0bcc0781ca5791cb83797a412b79b7a43bd5e094b59a33d6844fedfe46f56047c1c2b8ee631c114688551d83614a98dac99f85071a9e57cac7f27492
|
||||
AUX platform-1.6.9/platform.txt 1393 SHA256 85d3db3f4136b8a1ea843e8fe71c201dafb86fb93071cf9fdd38654a9b20a78b SHA512 250ea74fd1dbe4a9fd736766925fb7d60eaec4d70af6c7586e0709cf4b4da783edd82a642cd4a9c96006548f3db21fa4e6c84e2ed77d9bf0bc76219061d71def WHIRLPOOL 4282a46bd28df17dfa543725f7b730f23dfccb7b9bbfd470455e8c93b4badc9c489bfe08b898a35b1c4d23ec31475d30f126c2069d5851c31c48a5f615d109b9
|
||||
DIST 1.6.9.tar.gz 81103494 SHA256 0927e4d6bb24fd297765aaf529fe7b16a7da3223848e7b40cdc9843d4246f98d SHA512 92b3508068e3aae6a88c3a395d0906fb63d2fd8ee20d003173b96f3f0ff6851eddcdb77c6349dfec3ad0ee36976f53432c643f56724490e9187d4af049fd4bf8 WHIRLPOOL 841ebd6e4c23b610f87a5254b888a31bd9b36ea162f52f9301b8cc0af2288cb7cff83f130f7f3a03ca71fdaf471818f2faea99ab3f1c64b233d7d504b7ac0049
|
||||
EBUILD arduino-core-1.6.9.ebuild 1125 SHA256 e1a7a838e94bb4b5b7797e157b28bc5e98480bfe8d0061a14e30caf82fc8b896 SHA512 40e3dcd1e55029c0c3d54becb7b5d23e4a03fae8e2f2e03e378a0d732cd25c3a2bf9575a3d010ef6d16498e49a42ef5c03a2a9fe0c3f0a3beaf23b2879616e1a WHIRLPOOL a8a31bb5d3c6248aca3718ff3611ae3c724f04d257e68115d88d83d08a7451a8b35ba4bfcc40d46ac515c9a1ad5b4c415afbb7e7d7bda2cf4e52c912ac5dc555
|
||||
MISC metadata.xml 208 SHA256 91ad1c1aa6da2120f2a36c6b31826659af1eb7ebc30b62bb537795296c80ad68 SHA512 b53b2af56213a10dea345cecbacd72494d9a84e794274b2739837893a2fdec5ff71d66d8000375c440762734fff7f83a415ff6c44aa759b5bda7be21e983b79e WHIRLPOOL 32934c3a294d9bbbcadec4b77a0968f9f9cad6df554a58cd85d916d05d5a80311d1bbe3945b81662982fb9a7dccf64b8f0170c35bc716e1bb4d0219b8b0d16ed
|
||||
@@ -0,0 +1,50 @@
|
||||
# Copyright 1999-2016 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=5
|
||||
|
||||
inherit eutils
|
||||
|
||||
DESCRIPTION="An open-source AVR electronics prototyping platform"
|
||||
HOMEPAGE="http://arduino.cc/"
|
||||
SRC_URI="https://github.com/arduino/Arduino/archive/${PV}.tar.gz"
|
||||
|
||||
LICENSE="LGPL-2.1"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
RESTRICT="strip binchecks"
|
||||
|
||||
RDEPEND="
|
||||
dev-embedded/arduino-builder
|
||||
dev-embedded/avrdude
|
||||
dev-embedded/uisp"
|
||||
|
||||
DEPEND="
|
||||
!dev-embedded/arduino"
|
||||
|
||||
S="${WORKDIR}/Arduino-${PV}"
|
||||
SHARE="/usr/share/${PN}"
|
||||
|
||||
src_prepare() {
|
||||
epatch "${FILESDIR}/${P}-platform.patch"
|
||||
|
||||
cp "${FILESDIR}/platform-${PV}/"* hardware/
|
||||
}
|
||||
|
||||
src_install() {
|
||||
insinto "${SHARE}"
|
||||
rm -fr hardware/tools
|
||||
doins -r hardware libraries
|
||||
fowners -R root:uucp "${SHARE}"
|
||||
|
||||
# Use system arduino-builder
|
||||
dosym /usr/bin/arduino-builder "${SHARE}/arduino-builder"
|
||||
|
||||
# Install examples (NOT optional, needed for application startup)
|
||||
doins -r "${S}/build/shared/examples"
|
||||
|
||||
# hardware/tools/avr needs to exist or arduino-builder will
|
||||
# complain about missing required -tools arg
|
||||
dodir "${SHARE}/hardware/tools/avr"
|
||||
}
|
||||
@@ -0,0 +1,24 @@
|
||||
diff -ur Arduino-1.6.9.orig/hardware/arduino/avr/platform.txt Arduino-1.6.9/hardware/arduino/avr/platform.txt
|
||||
--- Arduino-1.6.9.orig/hardware/arduino/avr/platform.txt 2016-05-10 10:36:07.000000000 +0200
|
||||
+++ Arduino-1.6.9/hardware/arduino/avr/platform.txt 2016-07-04 22:38:17.670917983 +0200
|
||||
@@ -18,7 +18,7 @@
|
||||
compiler.warning_flags.all=-Wall -Wextra
|
||||
|
||||
# Default "compiler.path" is correct, change only if you want to override the initial value
|
||||
-compiler.path={runtime.tools.avr-gcc.path}/bin/
|
||||
+compiler.path=/usr/bin/
|
||||
compiler.c.cmd=avr-gcc
|
||||
compiler.c.flags=-c -g -Os {compiler.warning_flags} -std=gnu11 -ffunction-sections -fdata-sections -MMD
|
||||
compiler.c.elf.flags={compiler.warning_flags} -Os -Wl,--gc-sections
|
||||
@@ -91,9 +91,9 @@
|
||||
# AVR Uploader/Programmers tools
|
||||
# ------------------------------
|
||||
|
||||
-tools.avrdude.path={runtime.tools.avrdude.path}
|
||||
+tools.avrdude.path=/usr
|
||||
tools.avrdude.cmd.path={path}/bin/avrdude
|
||||
-tools.avrdude.config.path={path}/etc/avrdude.conf
|
||||
+tools.avrdude.config.path=/etc/avrdude.conf
|
||||
|
||||
tools.avrdude.upload.params.verbose=-v
|
||||
tools.avrdude.upload.params.quiet=-q -q
|
||||
@@ -0,0 +1,42 @@
|
||||
old.0.compiler.path={runtime.ide.path}/hardware/tools/avr/bin/
|
||||
new.0.compiler.path={runtime.tools.avr-gcc.path}/bin/
|
||||
|
||||
old.1.tools.avrdude.cmd.path={runtime.ide.path}/hardware/tools/avr/bin/avrdude
|
||||
new.1.tools.avrdude.cmd.path={path}/bin/avrdude
|
||||
|
||||
old.2.tools.avrdude.config.path={runtime.ide.path}/hardware/tools/avr/etc/avrdude.conf
|
||||
new.2.tools.avrdude.config.path={path}/etc/avrdude.conf
|
||||
|
||||
old.3.compiler.path={runtime.ide.path}/hardware/tools/gcc-arm-none-eabi-4.8.3-2014q1/bin/
|
||||
new.3.compiler.path={runtime.tools.arm-none-eabi-gcc.path}/bin/
|
||||
|
||||
old.4.tools.bossac.path={runtime.ide.path}/hardware/tools
|
||||
new.4.tools.bossac.path={runtime.tools.bossac.path}
|
||||
|
||||
old.5.recipe.c.combine.pattern="{compiler.path}{compiler.c.elf.cmd}" {compiler.c.elf.flags} -mcpu={build.mcu} "-T{build.variant.path}/{build.ldscript}" "-Wl,-Map,{build.path}/{build.project_name}.map" {compiler.c.elf.extra_flags} -o "{build.path}/{build.project_name}.elf" "-L{build.path}" -mthumb -Wl,--cref -Wl,--check-sections -Wl,--gc-sections -Wl,--entry=Reset_Handler -Wl,--unresolved-symbols=report-all -Wl,--warn-common -Wl,--warn-section-align -Wl,--warn-unresolved-symbols -Wl,--start-group "{build.path}/syscalls_sam3.c.o" {object_files} "{build.variant.path}/{build.variant_system_lib}" "{build.path}/{archive_file}" -Wl,--end-group -lm -gcc
|
||||
new.5.recipe.c.combine.pattern="{compiler.path}{compiler.c.elf.cmd}" {compiler.c.elf.flags} -mcpu={build.mcu} "-T{build.variant.path}/{build.ldscript}" "-Wl,-Map,{build.path}/{build.project_name}.map" {compiler.c.elf.extra_flags} -o "{build.path}/{build.project_name}.elf" "-L{build.path}" -mthumb -Wl,--cref -Wl,--check-sections -Wl,--gc-sections -Wl,--entry=Reset_Handler -Wl,--unresolved-symbols=report-all -Wl,--warn-common -Wl,--warn-section-align -Wl,--warn-unresolved-symbols -Wl,--start-group "{build.path}/core/syscalls_sam3.c.o" {object_files} "{build.variant.path}/{build.variant_system_lib}" "{build.path}/{archive_file}" -Wl,--end-group -lm -gcc
|
||||
|
||||
#specific to RedBearLab nRF51822 Boards
|
||||
old.6.recipe.c.combine.pattern="{compiler.path}{compiler.c.elf.cmd}" -mcpu={build.mcu} -mthumb -Wl,--gc-sections --specs=nano.specs -Wl,--wrap,main -Wl,-Map={build.path}/{build.project_name}.map,--cref "-T{build.variant.path}/{build.ldscript}" -o "{build.path}/{build.project_name}.elf" -Wl,--start-group "{build.path}/system_nrf51.c.o" {object_files} "{build.path}/startup_NRF51822.s.o" "{build.path}/{archive_file}" -Wl,--end-group -lstdc++ -lsupc++ -lm -lc -lgcc -lnosys
|
||||
new.6.recipe.c.combine.pattern="{compiler.path}{compiler.c.elf.cmd}" -mcpu={build.mcu} -mthumb -Wl,--gc-sections --specs=nano.specs -Wl,--wrap,main -Wl,-Map={build.path}/{build.project_name}.map,--cref "-T{build.variant.path}/{build.ldscript}" -o "{build.path}/{build.project_name}.elf" -Wl,--start-group "{build.path}/core/mbed/targets/cmsis/TARGET_NORDIC/TARGET_MCU_NRF51822/system_nrf51.c.o" {object_files} "{build.path}/core/startup_NRF51822.S.o" "{build.path}/{archive_file}" -Wl,--end-group -lstdc++ -lsupc++ -lm -lc -lgcc -lnosys
|
||||
|
||||
#specific to RFduino 1.6.3
|
||||
old.7.recipe.c.combine.pattern="{compiler.path}{compiler.c.elf.cmd}" {compiler.c.elf.flags} -mcpu={build.mcu} {build.extra_flags} "-T{build.variant.path}/{build.ldscript}" "-Wl,-Map,{build.path}/{build.project_name}.map" -Wl,--cref -o "{build.path}/{build.project_name}.elf" "-L{build.path}" -Wl,--warn-common -Wl,--warn-section-align -Wl,--start-group "{build.path}/syscalls.c.o" {object_files} "{build.variant.path}/{build.variant_system_lib}" "{build.variant.path}/libRFduino.a" "{build.variant.path}/libRFduinoBLE.a" "{build.variant.path}/libRFduinoGZLL.a" "{build.path}/{archive_file}" -Wl,--end-group
|
||||
new.7.recipe.c.combine.pattern="{compiler.path}{compiler.c.elf.cmd}" {compiler.c.elf.flags} -mcpu={build.mcu} {build.extra_flags} "-T{build.variant.path}/{build.ldscript}" "-Wl,-Map,{build.path}/{build.project_name}.map" -Wl,--cref -o "{build.path}/{build.project_name}.elf" "-L{build.path}" -Wl,--warn-common -Wl,--warn-section-align -Wl,--start-group "{build.path}/core/syscalls.c.o" {object_files} "{build.variant.path}/{build.variant_system_lib}" "{build.variant.path}/libRFduino.a" "{build.variant.path}/libRFduinoBLE.a" "{build.variant.path}/libRFduinoGZLL.a" "{build.path}/{archive_file}" -Wl,--end-group
|
||||
|
||||
old.8.recipe.ar.pattern="{compiler.path}{compiler.ar.cmd}" {compiler.ar.flags} {compiler.ar.extra_flags} "{build.path}/{archive_file}" "{object_file}"
|
||||
new.8.recipe.ar.pattern="{compiler.path}{compiler.ar.cmd}" {compiler.ar.flags} {compiler.ar.extra_flags} "{archive_file_path}" "{object_file}"
|
||||
|
||||
old.9.recipe.c.combine.pattern="{compiler.path}{compiler.c.elf.cmd}" {compiler.c.elf.flags} -mcpu={build.mcu} "-T{build.variant.path}/{build.ldscript}" "-Wl,-Map,{build.path}/{build.project_name}.map" {compiler.c.elf.extra_flags} -o "{build.path}/{build.project_name}.elf" "-L{build.path}" -mthumb -Wl,--cref -Wl,--check-sections -Wl,--gc-sections -Wl,--entry=Reset_Handler -Wl,--unresolved-symbols=report-all -Wl,--warn-common -Wl,--warn-section-align -Wl,--start-group "{build.path}/syscalls_sam3.c.o" {object_files} "{build.variant.path}/{build.variant_system_lib}" "{build.path}/{archive_file}" -Wl,--end-group -lm -gcc
|
||||
new.9.recipe.c.combine.pattern="{compiler.path}{compiler.c.elf.cmd}" {compiler.c.elf.flags} -mcpu={build.mcu} "-T{build.variant.path}/{build.ldscript}" "-Wl,-Map,{build.path}/{build.project_name}.map" {compiler.c.elf.extra_flags} -o "{build.path}/{build.project_name}.elf" "-L{build.path}" -mthumb -Wl,--cref -Wl,--check-sections -Wl,--gc-sections -Wl,--entry=Reset_Handler -Wl,--unresolved-symbols=report-all -Wl,--warn-common -Wl,--warn-section-align -Wl,--start-group "{build.path}/core/syscalls_sam3.c.o" {object_files} "{build.variant.path}/{build.variant_system_lib}" "{build.path}/{archive_file}" -Wl,--end-group -lm -gcc
|
||||
|
||||
#specific to Digistump AVR Boards 1.5.4
|
||||
old.10.recipe.ar.pattern="{compiler.path}{compiler.ar.cmd}" {compiler.ar.flags} "{build.path}/{archive_file}" "{object_file}"
|
||||
new.10.recipe.ar.pattern="{compiler.path}{compiler.ar.cmd}" {compiler.ar.flags} "{archive_file_path}" "{object_file}"
|
||||
|
||||
old.11.recipe.c.combine.pattern="{compiler.path}{compiler.c.elf.cmd}" {compiler.c.elf.flags} -mmcu={build.mcu} -o "{build.path}/{build.project_name}.elf" {object_files} "{build.path}/{archive_file}" "-L{build.path}" -lm
|
||||
new.11.recipe.c.combine.pattern="{compiler.path}{compiler.c.elf.cmd}" {compiler.c.elf.flags} -mmcu={build.mcu} -o "{build.path}/{build.project_name}.elf" {object_files} "{archive_file_path}" "-L{build.path}" -lm
|
||||
|
||||
#generic again
|
||||
old.12.recipe.preproc.macros="{compiler.path}{compiler.cpp.cmd}" {compiler.cpp.flags} {preproc.macros.flags} -mmcu={build.mcu} -DF_CPU={build.f_cpu} -DARDUINO={runtime.ide.version} -DARDUINO_{build.board} -DARDUINO_ARCH_{build.arch} {compiler.cpp.extra_flags} {build.extra_flags} {includes} "{source_file}"
|
||||
new.12.recipe.preproc.macros="{compiler.path}{compiler.cpp.cmd}" {compiler.cpp.flags} {preproc.macros.flags} -mmcu={build.mcu} -DF_CPU={build.f_cpu} -DARDUINO={runtime.ide.version} -DARDUINO_{build.board} -DARDUINO_ARCH_{build.arch} {compiler.cpp.extra_flags} {build.extra_flags} {includes} "{source_file}" -o "{preprocessed_file_path}"
|
||||
@@ -0,0 +1,13 @@
|
||||
# ctags
|
||||
# ------------------------------
|
||||
tools.ctags.path=/usr/bin
|
||||
tools.ctags.cmd.path={path}/ctags
|
||||
tools.ctags.pattern="{cmd.path}" -u --language-force=c++ -f - --c++-kinds=svpf --fields=KSTtzns --line-directives "{source_file}"
|
||||
|
||||
preproc.includes.flags=-w -x c++ -M -MG -MP
|
||||
preproc.includes.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}
|
||||
recipe.preproc.includes="{compiler.path}{compiler.cpp.cmd}" {preproc.includes.flags} -DF_CPU={build.f_cpu} -DARDUINO={runtime.ide.version} -DARDUINO_{build.board} -DARDUINO_ARCH_{build.arch} {compiler.cpp.extra_flags} {build.extra_flags} {preproc.includes.compatibility_flags} {includes} "{source_file}"
|
||||
|
||||
preproc.macros.flags=-w -x c++ -E -CC
|
||||
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}
|
||||
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} -DARDUINO_{build.board} -DARDUINO_ARCH_{build.arch} {compiler.cpp.extra_flags} {build.extra_flags} {preproc.macros.compatibility_flags} {includes} "{source_file}" -o "{preprocessed_file_path}"
|
||||
@@ -0,0 +1,7 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer>
|
||||
<email>junk4me46806@yahoo.com</email>
|
||||
</maintainer>
|
||||
</pkgmetadata>
|
||||
Reference in New Issue
Block a user