|
22 | 22 | <condition property="platform" value="windows"><os family="windows" /></condition>
|
23 | 23 | <condition property="platform" value="linux32"><os family="unix" arch="i386" /></condition>
|
24 | 24 | <condition property="platform" value="linux64"><os family="unix" arch="amd64" /></condition>
|
| 25 | + <condition property="platform" value="arm"><os family="unix" arch="arm" /></condition> |
25 | 26 |
|
26 | 27 | <condition property="macosx"><equals arg1="${platform}" arg2="macosx" /></condition>
|
27 | 28 | <condition property="windows"><equals arg1="${platform}" arg2="windows" /></condition>
|
28 | 29 | <condition property="linux32"><equals arg1="${platform}" arg2="linux32" /></condition>
|
29 | 30 | <condition property="linux64"><equals arg1="${platform}" arg2="linux64" /></condition>
|
30 | 31 | <condition property="linux"><equals arg1="${platform}" arg2="linux32" /></condition>
|
31 | 32 | <condition property="linux"><equals arg1="${platform}" arg2="linux64" /></condition>
|
| 33 | + <condition property="linux"><equals arg1="${platform}" arg2="arm" /></condition> |
32 | 34 |
|
33 | 35 | <condition property="staging_folder" value="macosx"><equals arg1="${platform}" arg2="macosx" /></condition>
|
34 | 36 | <condition property="staging_folder" value="windows"><equals arg1="${platform}" arg2="windows" /></condition>
|
35 | 37 | <condition property="staging_folder" value="linux"><equals arg1="${platform}" arg2="linux32" /></condition>
|
36 | 38 | <condition property="staging_folder" value="linux"><equals arg1="${platform}" arg2="linux64" /></condition>
|
| 39 | + <condition property="staging_folder" value="linux"><equals arg1="${platform}" arg2="arm" /></condition> |
37 | 40 |
|
38 | 41 | <condition property="staging_hardware_folder" value="Arduino.app/Contents/Java/hardware"><equals arg1="${platform}" arg2="macosx" /></condition>
|
39 | 42 | <condition property="staging_hardware_folder" value="hardware"><equals arg1="${platform}" arg2="windows" /></condition>
|
40 | 43 | <condition property="staging_hardware_folder" value="hardware"><equals arg1="${platform}" arg2="linux32" /></condition>
|
41 | 44 | <condition property="staging_hardware_folder" value="hardware"><equals arg1="${platform}" arg2="linux64" /></condition>
|
| 45 | + <condition property="staging_hardware_folder" value="hardware"><equals arg1="${platform}" arg2="arm" /></condition> |
42 | 46 |
|
43 | 47 | <condition property="arch-bits" value="32">
|
44 | 48 | <equals arg1="${platform}" arg2="linux32"/>
|
45 | 49 | </condition>
|
| 50 | + <condition property="arch-bits" value="32"> |
| 51 | + <equals arg1="${platform}" arg2="arm"/> |
| 52 | + </condition> |
46 | 53 | <condition property="arch-bits" value="64">
|
47 | 54 | <equals arg1="${platform}" arg2="linux64"/>
|
48 | 55 | </condition>
|
|
582 | 589 | <fileset dir="linux/work" includes="arduino" />
|
583 | 590 | <fileset dir="linux/work" includes="**/*.sh" />
|
584 | 591 | </chmod>
|
| 592 | + </target> |
585 | 593 |
|
| 594 | + <target name="linux-libastyle-x86" depends="linux-build" description="Download libastyle.so for x86/x64 arch"> |
586 | 595 | <antcall target="unzip">
|
587 | 596 | <param name="archive_file" value="./libastylej-2.05.1-2.zip" />
|
588 | 597 | <param name="archive_url" value="http://downloads.arduino.cc/libastylej-2.05.1-2.zip" />
|
|
607 | 616 |
|
608 | 617 | </target>
|
609 | 618 |
|
610 |
| - <target name="linux32-build" depends="linux-build" description="Build linux (32-bit) version"> |
| 619 | + <target name="linux-libastyle-arm" depends="linux-build" description="Download libastyle.so for ARM"> |
| 620 | + <antcall target="unzip"> |
| 621 | + <param name="archive_file" value="./libastylej-2.05.1-2.zip" /> |
| 622 | + <param name="archive_url" value="http://downloads.arduino.cc/libastylej-2.05.1-2.zip" /> |
| 623 | + <param name="final_folder" value="${staging_folder}/libastylej-2.05.1" /> |
| 624 | + <param name="dest_folder" value="${staging_folder}" /> |
| 625 | + </antcall> |
| 626 | + <copy file="linux/libastylej-2.05.1/libastylej_arm.so" tofile="linux/work/lib/libastylej.so" /> |
| 627 | + <chmod perm="755" file="linux/work/lib/libastylej.so" /> |
| 628 | + |
| 629 | + <antcall target="portable-${portable}"> |
| 630 | + <param name="parentdir" value="linux/work" /> |
| 631 | + </antcall> |
| 632 | + |
| 633 | + <antcall target="unzip"> |
| 634 | + <param name="archive_file" value="./liblistSerials-1.0.5.zip" /> |
| 635 | + <param name="archive_url" value="http://downloads.arduino.cc/liblistSerials/liblistSerials-1.0.5.zip" /> |
| 636 | + <param name="final_folder" value="${staging_folder}/liblistSerials-1.0.5" /> |
| 637 | + <param name="dest_folder" value="${staging_folder}" /> |
| 638 | + </antcall> |
| 639 | + <copy file="linux/liblistSerials-1.0.5/arm/liblistSerialsj.so" todir="linux/work/lib/" /> |
| 640 | + <chmod perm="755" file="linux/work/lib/liblistSerialsj.so" /> |
| 641 | + |
| 642 | + </target> |
| 643 | + |
| 644 | + <target name="arm-build" depends="linux-libastyle-arm" description="Build linux (32-bit) version"> |
| 645 | + <antcall target="linux-jvm-${linux-bundle-jvm-task}"> |
| 646 | + <param name="JVM" value="${LINUX32_BUNDLED_JVM}"/> |
| 647 | + </antcall> |
| 648 | + |
| 649 | + <delete dir="${staging_folder}/arduino-builder-arm" includeemptydirs="true"/> |
| 650 | + <mkdir dir="${staging_folder}/arduino-builder-arm"/> |
| 651 | + <antcall target="untar"> |
| 652 | + <param name="archive_file" value="./arduino-builder-arm-${ARDUINO-BUILDER-VERSION}.tar.bz2" /> |
| 653 | + <param name="archive_url" value="http://downloads.arduino.cc/tools/arduino-builder-arm-${ARDUINO-BUILDER-VERSION}.tar.bz2" /> |
| 654 | + <param name="final_folder" value="${staging_folder}/arduino-builder-arm/arduino-builder" /> |
| 655 | + <param name="dest_folder" value="${staging_folder}/arduino-builder-arm" /> |
| 656 | + </antcall> |
| 657 | + <copy file="${staging_folder}/arduino-builder-arm/arduino-builder" tofile="linux/work/arduino-builder" /> |
| 658 | + <chmod perm="755" file="linux/work/arduino-builder" /> |
| 659 | + <move file="${staging_folder}/arduino-builder-arm/tools" tofile="linux/work/tools-builder"/> |
| 660 | + <copy todir="linux/work/hardware" overwrite="true"> |
| 661 | + <fileset dir="${staging_folder}/arduino-builder-arm/hardware" includes="*.txt"/> |
| 662 | + </copy> |
| 663 | + <delete dir="${staging_folder}/arduino-builder-arm" includeemptydirs="true"/> |
| 664 | + |
| 665 | + <antcall target="avr-toolchain-bundle"> |
| 666 | + <param name="unpack_target" value="untar"/> |
| 667 | + <param name="gcc_archive_file" value="avr-gcc-4.8.1-arduino5-armhf-pc-linux-gnu.tar.bz2"/> |
| 668 | + <param name="gcc_version" value="4.8.1-arduino5"/> |
| 669 | + <param name="avrdude_archive_file" value="avrdude-6.0.1-arduino5-armhf-pc-linux-gnu.tar.bz2"/> |
| 670 | + <param name="avrdude_version" value="6.0.1-arduino5"/> |
| 671 | + </antcall> |
| 672 | + |
| 673 | + <antcall target="package-library-index-json-bundle"/> |
| 674 | + </target> |
| 675 | + |
| 676 | + <target name="linux32-build" depends="linux-libastyle-x86" description="Build linux (32-bit) version"> |
611 | 677 | <antcall target="linux-jvm-${linux-bundle-jvm-task}">
|
612 | 678 | <param name="JVM" value="${LINUX32_BUNDLED_JVM}"/>
|
613 | 679 | </antcall>
|
|
639 | 705 | <antcall target="package-library-index-json-bundle"/>
|
640 | 706 | </target>
|
641 | 707 |
|
642 |
| - <target name="linux64-build" depends="linux-build" description="Build linux (64-bit) version"> |
| 708 | + <target name="linux64-build" depends="linux-libastyle-x86" description="Build linux (64-bit) version"> |
643 | 709 | <antcall target="linux-jvm-${linux-bundle-jvm-task}">
|
644 | 710 | <param name="JVM" value="${LINUX64_BUNDLED_JVM}"/>
|
645 | 711 | </antcall>
|
|
687 | 753 |
|
688 | 754 | <target name="linux64-run" depends="build,start"/>
|
689 | 755 |
|
| 756 | + <target name="arm-run" depends="build,start"/> |
| 757 | + |
690 | 758 | <target name="linux32-start">
|
691 | 759 | <exec executable="./linux/work/arduino" spawn="false" failonerror="true"/>
|
692 | 760 | </target>
|
|
695 | 763 | <exec executable="./linux/work/arduino" spawn="false" failonerror="true"/>
|
696 | 764 | </target>
|
697 | 765 |
|
| 766 | + <target name="arm-start"> |
| 767 | + <exec executable="./linux/work/arduino" spawn="false" failonerror="true"/> |
| 768 | + </target> |
| 769 | + |
698 | 770 | <!-- Set '${dist_file}_available' property if toolchain dist_file is downloaded -->
|
699 | 771 | <!-- Set '${dist_file}_installed' property if toolchain is installed in working directory -->
|
700 | 772 | <!-- hardware/tools/${dist_check_file} is checked for existence -->
|
|
779 | 851 | <target name="linux64-dist" depends="linux-dist"
|
780 | 852 | description="Build .tar.xz of linux version" />
|
781 | 853 |
|
| 854 | + <target name="arm-dist" depends="linux-dist" |
| 855 | + description="Build .tar.xz of linux version" /> |
| 856 | + |
782 | 857 | <!-- - - - - - - - -->
|
783 | 858 | <!-- Windows -->
|
784 | 859 | <!-- - - - - - - - -->
|
|
0 commit comments