From 528b4c8758531e0eb4b6bc43ab5f61c4fff294ea Mon Sep 17 00:00:00 2001 From: layman Date: Fri, 8 Jul 2016 14:57:00 +0200 Subject: [PATCH] Added working arduino 1.6.9 ebuild --- dev-embedded/arduino/Manifest | 7 + dev-embedded/arduino/arduino-1.6.9.ebuild | 147 +++++ .../arduino-1.6.9-Do-Not-ThinkDifferent.patch | 22 + .../files/arduino-1.6.9-build.xml.patch | 615 ++++++++++++++++++ .../files/arduino-1.6.9-platform.patch | 24 + .../arduino/files/arduino-1.6.9-script.patch | 17 + .../arduino/files/platform-1.6.9/platform.txt | 16 + 7 files changed, 848 insertions(+) create mode 100644 dev-embedded/arduino/arduino-1.6.9.ebuild create mode 100644 dev-embedded/arduino/files/arduino-1.6.9-Do-Not-ThinkDifferent.patch create mode 100644 dev-embedded/arduino/files/arduino-1.6.9-build.xml.patch create mode 100644 dev-embedded/arduino/files/arduino-1.6.9-platform.patch create mode 100644 dev-embedded/arduino/files/arduino-1.6.9-script.patch create mode 100644 dev-embedded/arduino/files/platform-1.6.9/platform.txt diff --git a/dev-embedded/arduino/Manifest b/dev-embedded/arduino/Manifest index 2cead55..cd6698e 100644 --- a/dev-embedded/arduino/Manifest +++ b/dev-embedded/arduino/Manifest @@ -1,6 +1,13 @@ AUX arduino-1.6.7-Do-Not-ThinkDifferent.patch 832 SHA256 f3be70a62f24a91ba5de4350772fe365983b23c1ff12dc4add555954d499b997 SHA512 cfcb1a7fb9ea89fb48b0795a64c80e22962a8db3417ab51aaef140e76d7d2d27f311ab9463d530e190e06b0ad4412460af71a263dd93115cb2cb89c21ba8107c WHIRLPOOL da06bde9ef309fb0a55ef0c94a1427410ce0aea875ee577fc00f9171905dffe6748bd1777639408f4e10e6d1f1fbc8beaf753379e8ad6ae64f4eb7d099585531 AUX arduino-1.6.7-build.xml.patch 27270 SHA256 143a1a1698280378166d00a69e21ca2d8d31b294ce15ed3f4ce9593c20db0227 SHA512 7bca2efb434a41d0f6f4594bb11f940584896dcd647eff5f621358a679402ff07673c7b7c8fb38dfdc53c724bc3add674af934680a814aff1053c296ab1e4182 WHIRLPOOL abcad8468201020cb6c2244fdacd2f11c8d77849974970b41b99bf404151fc588fa4ecdc2f4e5a084e238860b6905d40250197c250f81e8f02e72dc16cb79f23 AUX arduino-1.6.7-script.patch 580 SHA256 553335d62134c9ca66e7b9f0b9496f187c76a3223438f2659e29d51cdd55776d SHA512 65b2868a18201f738a64377d965601dda77cee9713720e1d91de4378038083669370e3353b82f48f41c27d0ff65a859a8acc9b15bb20ba55bb7685daa98db173 WHIRLPOOL 2b9de5c030c05f48a52fd67f54d2ae1a25b1f95b1e02a69a172fe286d9b1c6912a652954b3e6d35b1c0cf252ba2ccaffa86e844e9f8075323ef1e413a0a988af +AUX arduino-1.6.9-Do-Not-ThinkDifferent.patch 832 SHA256 f3be70a62f24a91ba5de4350772fe365983b23c1ff12dc4add555954d499b997 SHA512 cfcb1a7fb9ea89fb48b0795a64c80e22962a8db3417ab51aaef140e76d7d2d27f311ab9463d530e190e06b0ad4412460af71a263dd93115cb2cb89c21ba8107c WHIRLPOOL da06bde9ef309fb0a55ef0c94a1427410ce0aea875ee577fc00f9171905dffe6748bd1777639408f4e10e6d1f1fbc8beaf753379e8ad6ae64f4eb7d099585531 +AUX arduino-1.6.9-build.xml.patch 29384 SHA256 9417ebed1e3f122eefbc8992b700f3865bfda53974ac04a284f1ac7a8f76099e SHA512 0a7b6bfaa252b56f3685e0b5acccd92db8b794523bed3e7750206fe303ba2004b3aa6e1086601a0adbb81277c4adc4ef6b9f0a35fe4b06fad2d9406e33b5359e WHIRLPOOL 3e705f9df74208bc16105f775d92216cbbd41156f0799481d6870b91be6e034d810e7d3a863875a523877855d9fc979f01c72c083649ddc88607cbc9e25adcc1 +AUX arduino-1.6.9-platform.patch 1102 SHA256 4026317625b48b4f845b31655a3553417e62cfd96072ac3b9dc2166806e95838 SHA512 91300f146fac62c16e542536e780ade8e4a10f95dc0e254fd7de1504eedec3fccffe6ef137ab05b457c9c675007b4067d53736e409c7dab7711e590ede22e4e4 WHIRLPOOL 787bfa52278cc2cc443c346bac7e7f1f9a52be409e64fc04c9a77461d3770118bf0ae583316918190fdd12c975d59869a5dc19157739bc37b396ce92a0adb07c +AUX arduino-1.6.9-script.patch 580 SHA256 553335d62134c9ca66e7b9f0b9496f187c76a3223438f2659e29d51cdd55776d SHA512 65b2868a18201f738a64377d965601dda77cee9713720e1d91de4378038083669370e3353b82f48f41c27d0ff65a859a8acc9b15bb20ba55bb7685daa98db173 WHIRLPOOL 2b9de5c030c05f48a52fd67f54d2ae1a25b1f95b1e02a69a172fe286d9b1c6912a652954b3e6d35b1c0cf252ba2ccaffa86e844e9f8075323ef1e413a0a988af +AUX platform-1.6.9/platform.txt 1447 SHA256 1a971137ac7575b4a6cb5869f79158db8ab61c1e899a275900ae9cce9fd140ed SHA512 269be33d4a2f22f59f149037614eca87b062c4f41f71dd3576db395d67018954f855d79b370a0b88b823985b287e163bbd0bdc430546a5ed3f5316fd7a0f41cb WHIRLPOOL 0daa35b52af6f8a1e6a3a58d4db7bb63798ac656400bf4227e94c166a1e8c159ef01012f1a8ea0a3c9a2aa836e5e00e1e5c6e65c0d34f72f7465419caa2ddeb0 DIST arduino-1.6.7.tar.gz 77578555 SHA256 ae524c19c3b6fcd00cbf709e693321a13e694316fea5642a54b02d4170213586 SHA512 2f76aedad6f8bb9c3e17c4b02ecf816f5fe628b4856a6bd9a3d7c0fe3d9999a39df60a4794d99b1e62c3ae41695350f27d148a0925f7f59b8071359d33be2b00 WHIRLPOOL c5bdf2a67ff37fc8bc4a002ea24f003d97f6ae04632d906fc4d37d2af64c113f698e26720c73b40afc39925f03206a41a4ec0faba0d80756427714102ad47f90 +DIST arduino-1.6.9.tar.gz 81103494 SHA256 0927e4d6bb24fd297765aaf529fe7b16a7da3223848e7b40cdc9843d4246f98d SHA512 92b3508068e3aae6a88c3a395d0906fb63d2fd8ee20d003173b96f3f0ff6851eddcdb77c6349dfec3ad0ee36976f53432c643f56724490e9187d4af049fd4bf8 WHIRLPOOL 841ebd6e4c23b610f87a5254b888a31bd9b36ea162f52f9301b8cc0af2288cb7cff83f130f7f3a03ca71fdaf471818f2faea99ab3f1c64b233d7d504b7ac0049 DIST arduino-icons.tar.bz2 58775 SHA256 9086ae27a13cc19e428ed7e6434366752b33a7d066b5620bfdd371709277390e SHA512 b750e79d6117f5df619f2b765dad6e64f0ba4aa3314b0b6e00801577e3ea1f15951ba15efe7a00f5317285a19ac29ac41c78b71342f45cd164c794a42bafcdd9 WHIRLPOOL b53ab3ff2981ca9f6d45311b9f885ca831700a7a49fef4a376cdc489f7cc3a6c39fbb93994b962b6854b0833d7342b951b5c6327422aafce762f92952b7a5876 EBUILD arduino-1.6.7.ebuild 3617 SHA256 c078fd90e9d0eed48b0757dc1df7a1d078feef5abfcde907bd42317d1f146d9e SHA512 6f193f84325863969546350d6c10378aeaade1eb6f5207e824c9546ae500da3e93b003d52ef752a8c8e25371ba8838cc32659df0c9ef879a8956762dc24fa9eb WHIRLPOOL d67cc32dea2c31f3ed1dc130ea8a3e1c6d006d40e069c4efa00fdea46c40a00d92ab6c0b5205a03a5386ab6452cf040e03bc2e23dec0dfae302b2aeefd34b0ad +EBUILD arduino-1.6.9.ebuild 4423 SHA256 e36a3ec472ddedb03539fe0a72edb2f0f1ddbdae7a7410cf665cda492b176829 SHA512 f6584fda9073668755d63689ec73165984321156f76dbcc95ca727557b2d2cd0131bd16e29a05f56b90ffafe1cb5a40ed75696d2b77e4653b7e54b679214395e WHIRLPOOL 9bdcc2bb2fcfdaaed4e15286374bd6553c5f22e383f9fdee08503fafec0e3712884f4b54bb1fccaf2322bf0505f98a0a12fc356f1e78af3c01a70c6d9b9495f0 diff --git a/dev-embedded/arduino/arduino-1.6.9.ebuild b/dev-embedded/arduino/arduino-1.6.9.ebuild new file mode 100644 index 0000000..bead624 --- /dev/null +++ b/dev-embedded/arduino/arduino-1.6.9.ebuild @@ -0,0 +1,147 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +JAVA_PKG_IUSE="doc examples" + +inherit eutils java-pkg-2 java-ant-2 + +DESCRIPTION="An open-source AVR electronics prototyping platform" +HOMEPAGE="http://arduino.cc/ https://github.com/arduino/Arduino" +SRC_URI="https://github.com/arduino/Arduino/archive/${PV}.tar.gz -> ${P}.tar.gz +mirror://gentoo/arduino-icons.tar.bz2" +LICENSE="GPL-2 GPL-2+ LGPL-2 CC-BY-SA-3.0" +SLOT="0" +KEYWORDS="amd64 x86" +RESTRICT="strip binchecks" +IUSE="" + +COMMONDEP=" +dev-embedded/listserialportsc +dev-java/jna:0 +>dev-java/rxtx-2.1:2 +dev-util/astyle" + +RDEPEND="${COMMONDEP} +dev-embedded/avrdude +dev-embedded/uisp +sys-devel/crossdev +>=virtual/jre-1.8" + +DEPEND="${COMMONDEP} +>=virtual/jdk-1.8" + +EANT_GENTOO_CLASSPATH="jna,rxtx-2" +EANT_EXTRA_ARGS="-Dversion=${PV}" +EANT_BUILD_TARGET="build" +JAVA_ANT_REWRITE_CLASSPATH="yes" + +src_unpack() { + unpack ${A} + # cd ../"${S}" + mv Arduino-${PV} arduino-${PV} + +} + +java_prepare() { + # Remove the libraries to ensure the system + # libraries are used + # rm app/lib/* || die + rm -rf app/src/processing/app/macosx || die + # Patch build/build.xml - remove local jar files + # for rxtx and ecj (use system wide versions) + epatch "${FILESDIR}"/${P}-build.xml.patch + + # Patch launcher script to include rxtx class/ld paths + epatch "${FILESDIR}"/${P}-script.patch + + # Some OS X ThinkDifferent stuff from processing library + epatch "${FILESDIR}"/${P}-Do-Not-ThinkDifferent.patch + + # Patch platform.txt for compiler paths + epatch "${FILESDIR}"/${P}-platform.patch +} + +src_compile() { + eant -f arduino-core/build.xml + EANT_GENTOO_CLASSPATH_EXTRA="../arduino-core/arduino-core.jar" + eant -f app/build.xml + eant "${EANT_EXTRA_ARGS}" -f build/build.xml +} + +src_install() { + cd "${S}"/build/linux/work || die + # java-pkg_dojar lib/arduino-core.jar lib/pde.jar + java-pkg_dojar lib/*.jar + java-pkg_dolauncher ${PN} --pwd /usr/share/${PN} --main processing.app.Base + + # This doesn't seem to be optional, it just hangs when starting without + # examples in correct place + #if use examples; then + #java-pkg_doexamples examples + #docompress -x /usr/share/doc/${P}/examples/ + #fi + + if use doc; then + dodoc revisions.txt "${S}"/readme.txt + dohtml -r reference + java-pkg_dojavadoc "${S}"/build/javadoc/everything + fi + + insinto "/usr/share/${PN}/" + doins -r dist examples hardware libraries + insinto "/usr/share/${PN}/hardware" + doins "${FILESDIR}/platform-${PV}/platform.txt" + fowners -R root:uucp "/usr/share/${PN}/hardware" + + exeinto "/usr/share/${PN}/" + doexe arduino-builder + + insinto "/usr/share/${PN}/lib" + doins -r lib/*.txt lib/theme lib/*.png lib/*.conf lib/*.key + + # For TeensyDuino + dosym /usr/bin/arduino "/usr/share/${PN}/arduino" + + # use system avrdude + # patching class files is too hard + dosym /usr/bin/avrdude "/usr/share/${PN}/hardware/tools/avrdude" + dodir "/usr/share/${PN}/hardware/tools/avr/etc/" + dosym /etc/avrdude.conf "/usr/share/${PN}/hardware/tools/avr/etc/avrdude.conf" + + dosym /usr/$(get_libdir)/libastyle.so "/usr/share/${PN}/lib/libastylej.so" + dosym /usr/$(get_libdir)/liblistSerialsj.so "/usr/share/${PN}/lib/liblistSerialsj.so" + dodir "/usr/share/${PN}/hardware/tools/avr/bin/" + dosym /usr/bin/avr-g++ "/usr/share/${PN}/hardware/tools/avr/bin/avr-g++" + dosym /usr/bin/avr-gcc "/usr/share/${PN}/hardware/tools/avr/bin/avr-gcc" + dosym /usr/bin/avr-ar "/usr/share/${PN}/hardware/tools/avr/bin/avr-ar" + dosym /usr/bin/avr-objcopy "/usr/share/${PN}/hardware/tools/avr/bin/avr-objcopy" + dosym /usr/bin/avr-size "/usr/share/${PN}/hardware/tools/avr/bin/avr-size" + + if [ -x /usr/bin/avr-ld ]; then + BU_VER=$( avr-ld --version | head -1 | sed -e 's/^.*(.*) //' ) + dosym /usr/lib/binutils/avr/${BU_VER}/ldscripts "/usr/avr/lib/ldscripts" + fi + + # install menu and icons + domenu "${FILESDIR}/${PN}.desktop" + for sz in 16 24 32 48 128 256; do + newicon -s $sz \ + "${WORKDIR}/${PN}-icons/debian_icons_${sz}x${sz}_apps_${PN}.png" \ + "${PN}.png" + done + +} + +pkg_postinst() { + if [ ! -x /usr/bin/avr-g++ ]; then + ewarn "Install avr crosscompiler using:" + ewarn " USE=\"-openmp -hardened -sanitize -vtv\" \\" + ewarn " crossdev -s4 --ex-gdb -v -S --target avr" + echo + ewarn "Afterwards, create a symlink for ldscripts:" + ewarn " BU_VER=$( avr-ld --version | head -1 | sed -e 's/^.*(.*) //' ) \\" + ewarn " ln -s /usr/lib/binutils/avr/\$BU_VER/ldscripts /usr/avr/lib/ldscripts" + fi +} diff --git a/dev-embedded/arduino/files/arduino-1.6.9-Do-Not-ThinkDifferent.patch b/dev-embedded/arduino/files/arduino-1.6.9-Do-Not-ThinkDifferent.patch new file mode 100644 index 0000000..8a7a92f --- /dev/null +++ b/dev-embedded/arduino/files/arduino-1.6.9-Do-Not-ThinkDifferent.patch @@ -0,0 +1,22 @@ +diff -uNr a/app/src/processing/app/Base.java b/app/src/processing/app/Base.java +--- a/app/src/processing/app/Base.java 2015-11-07 16:00:54.614383789 +0100 ++++ b/app/src/processing/app/Base.java 2015-11-07 16:01:09.486384112 +0100 +@@ -49,7 +49,6 @@ + import processing.app.helpers.filefilters.OnlyFilesWithExtension; + import processing.app.javax.swing.filechooser.FileNameExtensionFilter; + import processing.app.legacy.PApplet; +-import processing.app.macosx.ThinkDifferent; + import processing.app.packages.LibraryList; + import processing.app.packages.UserLibrary; + import processing.app.syntax.PdeKeywords; +@@ -129,10 +128,6 @@ + + splashScreenHelper.splashText(_("Loading configuration...")); + +- if (OSUtils.isMacOS()) { +- ThinkDifferent.init(); +- } +- + try { + guardedMain(args); + } catch (Throwable e) { diff --git a/dev-embedded/arduino/files/arduino-1.6.9-build.xml.patch b/dev-embedded/arduino/files/arduino-1.6.9-build.xml.patch new file mode 100644 index 0000000..04b70df --- /dev/null +++ b/dev-embedded/arduino/files/arduino-1.6.9-build.xml.patch @@ -0,0 +1,615 @@ +diff -ur arduino-1.6.9.orig/build/build.xml arduino-1.6.9/build/build.xml +--- arduino-1.6.9.orig/build/build.xml 2016-05-10 10:36:07.000000000 +0200 ++++ arduino-1.6.9/build/build.xml 2016-07-06 09:06:45.863114224 +0200 +@@ -13,37 +13,20 @@ + + + +- +- +- +- +- +- +- +- +- +- +- + + + + +- +- + + + + + + +- +- + + + + +- +- + + + +@@ -58,7 +41,6 @@ + + + +- + + + +@@ -323,258 +305,6 @@ + + + +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- ======================================================= +- Arduino for Mac OS X can only be built on Mac OS X. +- +- Bye. +- ======================================================= +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- ======================================================= +- Arduino for Mac OS X built and signed. +- +- macosx/arduino-${full-version}-signed.zip +- ======================================================= +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- ======================================================= +- Arduino for Mac OS X was built. Grab the image from +- +- macosx/arduino-${full-version}.zip +- ======================================================= +- +- +- +- + + + +@@ -710,14 +440,6 @@ + + + +- +- +- +- +- +- +- +- + + + +@@ -742,14 +464,6 @@ + + + +- +- +- +- +- +- +- +- + + + +@@ -774,14 +488,6 @@ + + + +- +- +- +- +- +- +- +- + + + +@@ -902,197 +608,6 @@ + + +- +- +- +- +- +- +- +- +- +- +- +- +- +- ======================================================= +- Arduino for Windows can only be built on windows. +- +- Bye. +- ======================================================= +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- ======================================================= +- Arduino for Windows was built. Grab the archive from +- +- windows/arduino-${full-version}.zip +- ======================================================= +- +- +- + + + +@@ -1109,8 +624,6 @@ + prefix="arduino-${version}" + excludes="**/*.tgz, + **/*.bz2, +- **/build/macosx/, +- **/build/windows/, + **/work/, + **/.git/, + **/*.class" +@@ -1132,35 +645,7 @@ + + + +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- ++ depends="linux-clean, subprojects-clean"> + + + +@@ -1187,17 +672,6 @@ + + + +- +- +- +- +- +- +- +- +- +- +- + + ${BUILD_DATE} + diff --git a/dev-embedded/arduino/files/arduino-1.6.9-platform.patch b/dev-embedded/arduino/files/arduino-1.6.9-platform.patch new file mode 100644 index 0000000..ab6dcc7 --- /dev/null +++ b/dev-embedded/arduino/files/arduino-1.6.9-platform.patch @@ -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-06 17:11:45.587888237 +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 diff --git a/dev-embedded/arduino/files/arduino-1.6.9-script.patch b/dev-embedded/arduino/files/arduino-1.6.9-script.patch new file mode 100644 index 0000000..98a31be --- /dev/null +++ b/dev-embedded/arduino/files/arduino-1.6.9-script.patch @@ -0,0 +1,17 @@ +diff -uNr a/build/linux/dist/arduino b/build/linux/dist/arduino +--- a/build/linux/dist/arduino 2015-11-07 16:21:27.391410539 +0100 ++++ b/build/linux/dist/arduino 2015-11-07 16:22:19.534411671 +0100 +@@ -8,11 +8,11 @@ + "$APPDIR"/lib/*.jar \ + ; + do +- CLASSPATH="${CLASSPATH}:${LIB}" ++ CLASSPATH="${CLASSPATH+$CLASSPATH:}${LIB}" + done + export CLASSPATH + +-LD_LIBRARY_PATH=$APPDIR/lib${LD_LIBRARY_PATH:+:$LD_LIBRARY_PATH} ++LD_LIBRARY_PATH="$(java-config -di rxtx-2)${LD_LIBRARY_PATH+:$LD_LIBRARY_PATH}" + export LD_LIBRARY_PATH + + export PATH="${APPDIR}/java/bin:${PATH}" diff --git a/dev-embedded/arduino/files/platform-1.6.9/platform.txt b/dev-embedded/arduino/files/platform-1.6.9/platform.txt new file mode 100644 index 0000000..27cf359 --- /dev/null +++ b/dev-embedded/arduino/files/platform-1.6.9/platform.txt @@ -0,0 +1,16 @@ +# 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}" + +# additional entries +tools.avrdude.path=/usr/bin + +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}"