|
3 | 3 | <!--echo message="os.name = ${os.name}" /-->
|
4 | 4 | <!--echo message="os.arch = ${os.arch}" /-->
|
5 | 5 | <!--echo message="os.version = ${os.version}" /-->
|
| 6 | + <echo message="os.arch = ${os.arch}"/> |
6 | 7 |
|
7 | 8 | <tstamp>
|
8 | 9 | <format property="BUILD_DATE" pattern="yyyy/MM/dd hh:mm"/>
|
|
24 | 25 | <condition property="platform" value="linux64"><os family="unix" arch="amd64" /></condition>
|
25 | 26 | <condition property="platform" value="linuxarm"><os family="unix" arch="arm" /></condition>
|
26 | 27 | <condition property="platform" value="linuxaarch64"><os family="unix" arch="aarch64" /></condition>
|
| 28 | + <condition property="platform" value="linuxppc64le"><os family="unix" arch="ppc64le" /></condition> |
27 | 29 |
|
28 | 30 | <condition property="windows_host" value="true"><os family="windows" /></condition>
|
29 | 31 |
|
|
35 | 37 | <condition property="linux"><equals arg1="${platform}" arg2="linux64" /></condition>
|
36 | 38 | <condition property="linux"><equals arg1="${platform}" arg2="linuxarm" /></condition>
|
37 | 39 | <condition property="linux"><equals arg1="${platform}" arg2="linuxaarch64" /></condition>
|
| 40 | + <condition property="linux"><equals arg1="${platform}" arg2="linuxppc64le" /></condition> |
38 | 41 |
|
39 | 42 | <condition property="staging_folder" value="macosx"><equals arg1="${platform}" arg2="macosx" /></condition>
|
40 | 43 | <condition property="staging_folder" value="windows"><equals arg1="${platform}" arg2="windows" /></condition>
|
41 | 44 | <condition property="staging_folder" value="linux"><equals arg1="${platform}" arg2="linux32" /></condition>
|
42 | 45 | <condition property="staging_folder" value="linux"><equals arg1="${platform}" arg2="linux64" /></condition>
|
43 | 46 | <condition property="staging_folder" value="linux"><equals arg1="${platform}" arg2="linuxarm" /></condition>
|
44 | 47 | <condition property="staging_folder" value="linux"><equals arg1="${platform}" arg2="linuxaarch64" /></condition>
|
| 48 | + <condition property="staging_folder" value="linux"><equals arg1="${platform}" arg2="linuxppc64le" /></condition> |
45 | 49 |
|
46 | 50 | <condition property="staging_hardware_folder" value="Arduino.app/Contents/Java/hardware"><equals arg1="${platform}" arg2="macosx" /></condition>
|
47 | 51 | <condition property="staging_hardware_folder" value="hardware"><equals arg1="${platform}" arg2="windows" /></condition>
|
48 | 52 | <condition property="staging_hardware_folder" value="hardware"><equals arg1="${platform}" arg2="linux32" /></condition>
|
49 | 53 | <condition property="staging_hardware_folder" value="hardware"><equals arg1="${platform}" arg2="linux64" /></condition>
|
50 | 54 | <condition property="staging_hardware_folder" value="hardware"><equals arg1="${platform}" arg2="linuxarm" /></condition>
|
51 | 55 | <condition property="staging_hardware_folder" value="hardware"><equals arg1="${platform}" arg2="linuxaarch64" /></condition>
|
| 56 | + <condition property="staging_hardware_folder" value="hardware"><equals arg1="${platform}" arg2="linuxppc64le" /></condition> |
52 | 57 |
|
53 | 58 | <condition property="arch-bits" value="32">
|
54 | 59 | <equals arg1="${platform}" arg2="linux32"/>
|
|
62 | 67 | <condition property="arch-bits" value="64">
|
63 | 68 | <equals arg1="${platform}" arg2="linuxaarch64"/>
|
64 | 69 | </condition>
|
| 70 | + <condition property="arch-bits" value="64"> |
| 71 | + <equals arg1="${platform}" arg2="linuxppc64le"/> |
| 72 | + </condition> |
65 | 73 |
|
66 | 74 | <condition property="launch4j-download-unpack-target-name" value="launch4j-windows"><os family="windows" /></condition>
|
67 | 75 | <property name="launch4j-download-unpack-target-name" value="launch4j-linux"/>
|
|
72 | 80 | <property name="LINUX64_BUNDLED_JVM" value="none"/>
|
73 | 81 | <property name="LINUXARM_BUNDLED_JVM" value="none"/>
|
74 | 82 | <property name="LINUXAARCH64_BUNDLED_JVM" value="none"/>
|
| 83 | + <property name="LINUXPOWERPC64LE_BUNDLED_JVM" value="none"/> |
75 | 84 | <condition property="linux-bundle-jvm-task" value="noop">
|
76 | 85 | <and>
|
77 | 86 | <equals arg1="${LINUX32_BUNDLED_JVM}" arg2="none"/>
|
78 | 87 | <equals arg1="${LINUX64_BUNDLED_JVM}" arg2="none"/>
|
79 | 88 | <equals arg1="${LINUXARM_BUNDLED_JVM}" arg2="none"/>
|
80 | 89 | <equals arg1="${LINUXAARCH64_BUNDLED_JVM}" arg2="none"/>
|
| 90 | + <equals arg1="${LINUXPOWERPC64LE_BUNDLED_JVM}" arg2="none"/> |
81 | 91 | </and>
|
82 | 92 | </condition>
|
83 | 93 | <condition property="linux-bundle-jvm-task" value="bundle">
|
|
94 | 104 | <not>
|
95 | 105 | <equals arg1="${LINUXAARCH64_BUNDLED_JVM}" arg2="none"/>
|
96 | 106 | </not>
|
| 107 | + <not> |
| 108 | + <equals arg1="${LINUXPOWERPC64LE_BUNDLED_JVM}" arg2="none"/> |
| 109 | + </not> |
97 | 110 | </or>
|
98 | 111 | </condition>
|
99 | 112 |
|
|
763 | 776 | </antcall>
|
764 | 777 | </target>
|
765 | 778 |
|
| 779 | + <target name="linux-libastyle-ppc64le" depends="linux-build" description="Download libastyle.so for PowerPC64LE"> |
| 780 | + <antcall target="unzip"> |
| 781 | + <param name="archive_file" value="./libastylej-2.05.1-4.zip" /> |
| 782 | + <param name="archive_url" value="https://downloads.arduino.cc/libastylej-2.05.1-4.zip" /> |
| 783 | + <param name="final_folder" value="${staging_folder}/libastylej-2.05.1" /> |
| 784 | + <param name="dest_folder" value="${staging_folder}" /> |
| 785 | + </antcall> |
| 786 | + <copy file="linux/libastylej-2.05.1/libastylej_ppc64le.so" tofile="linux/work/lib/libastylej.so" /> |
| 787 | + <chmod perm="755" file="linux/work/lib/libastylej.so" /> |
| 788 | + |
| 789 | + <antcall target="portable-${portable}"> |
| 790 | + <param name="parentdir" value="linux/work" /> |
| 791 | + </antcall> |
| 792 | + |
| 793 | + <antcall target="unzip"> |
| 794 | + <param name="archive_file" value="./liblistSerials-${LIBLISTSERIAL-VERSION}.zip" /> |
| 795 | + <param name="archive_url" value="https://downloads.arduino.cc/liblistSerials/liblistSerials-${LIBLISTSERIAL-VERSION}.zip" /> |
| 796 | + <param name="final_folder" value="${staging_folder}/liblistSerials-${LIBLISTSERIAL-VERSION}" /> |
| 797 | + <param name="dest_folder" value="${staging_folder}" /> |
| 798 | + </antcall> |
| 799 | + <copy file="linux/liblistSerials-${LIBLISTSERIAL-VERSION}/ppc64le/liblistSerialsj.so" todir="linux/work/lib/" /> |
| 800 | + <chmod perm="755" file="linux/work/lib/liblistSerialsj.so" /> |
| 801 | + </target> |
| 802 | + |
| 803 | + <target name="linuxppc64le-build" depends="linux-libastyle-ppc64le" description="Build Linux (PowerPC64LE) version"> |
| 804 | + <antcall target="linux-jvm-${linux-bundle-jvm-task}"> |
| 805 | + <param name="JVM" value="${LINUXPOWERPC64LE_BUNDLED_JVM}"/> |
| 806 | + </antcall> |
| 807 | + |
| 808 | + <antcall target="build-arduino-builder" /> |
| 809 | + |
| 810 | + <antcall target="avr-toolchain-bundle"> |
| 811 | + <param name="unpack_target" value="untar"/> |
| 812 | + <param name="gcc_archive_file" value="avr-gcc-${AVRGCC-VERSION}-powerpc64le-pc-linux-gnu.tar.bz2"/> |
| 813 | + <param name="gcc_version" value="${AVRGCC-VERSION}"/> |
| 814 | + <param name="avrdude_archive_file" value="avrdude-${AVRDUDE-VERSION}-powerpc64le-pc-linux-gnu.tar.bz2"/> |
| 815 | + <param name="avrdude_version" value="${AVRDUDE-VERSION}"/> |
| 816 | + <param name="arduinoOTA_archive_file" value="arduinoOTA-${arduinoOTA-VERSION}-linux_ppc64le.tar.bz2"/> |
| 817 | + <param name="arduinoOTA_version" value="${arduinoOTA-VERSION}"/> |
| 818 | + </antcall> |
| 819 | + </target> |
| 820 | + |
766 | 821 | <target name="linux32-build" depends="linux-libastyle-x86" description="Build linux (32-bit) version">
|
767 | 822 | <antcall target="linux-jvm-${linux-bundle-jvm-task}">
|
768 | 823 | <param name="JVM" value="${LINUX32_BUNDLED_JVM}"/>
|
|
819 | 874 |
|
820 | 875 | <target name="linuxaarch64-run" depends="build,start"/>
|
821 | 876 |
|
| 877 | + <target name="linuxppc64le-run" depends="build,start"/> |
| 878 | + |
822 | 879 | <target name="linux32-start">
|
823 | 880 | <exec executable="./linux/work/arduino" spawn="false" failonerror="true"/>
|
824 | 881 | </target>
|
|
835 | 892 | <exec executable="./linux/work/arduino" spawn="false" failonerror="true"/>
|
836 | 893 | </target>
|
837 | 894 |
|
| 895 | + <target name="linuxpowerpc64le-start"> |
| 896 | + <exec executable="./linux/work/arduino" spawn="false" failonerror="true"/> |
| 897 | + </target> |
| 898 | + |
838 | 899 | <target name="build-arduino-builder" unless="no_arduino_builder">
|
839 | 900 | <delete dir="${staging_folder}/arduino-builder-${platform}" includeemptydirs="true"/>
|
840 | 901 | <mkdir dir="${staging_folder}/arduino-builder-${platform}"/>
|
|
969 | 1030 | <target name="linuxaarch64-dist" depends="linux-dist"
|
970 | 1031 | description="Build .tar.xz of linux aarch64 version" />
|
971 | 1032 |
|
| 1033 | + <target name="linuxppc64le-dist" depends="linux-dist" |
| 1034 | + description="Build .tar.xz of linux ppc64le version" /> |
| 1035 | + |
972 | 1036 | <!-- - - - - - - - -->
|
973 | 1037 | <!-- Windows -->
|
974 | 1038 | <!-- - - - - - - - -->
|
|
0 commit comments