mirror of
https://github.com/arduino/Arduino.git
synced 2025-01-19 08:52:15 +01:00
Added 'arm' architecture support in Boards Manager
This is a necessary step to fully support ARM builds of the Arduino IDE See #3549
This commit is contained in:
parent
9e5dc5ce3b
commit
6398cde1c8
@ -50,7 +50,17 @@ public abstract class HostDependentDownloadableContribution extends Downloadable
|
|||||||
String host = getHost();
|
String host = getHost();
|
||||||
|
|
||||||
if (osName.contains("Linux")) {
|
if (osName.contains("Linux")) {
|
||||||
if (osArch.contains("amd64")) {
|
if (osArch.equals("arm")) {
|
||||||
|
// Raspberry PI, BBB or other ARM based host
|
||||||
|
|
||||||
|
// PI: "arm-linux-gnueabihf"
|
||||||
|
// Arch-linux on PI2: "armv7l-unknown-linux-gnueabihf"
|
||||||
|
// Raspbian on PI2: "arm-linux-gnueabihf"
|
||||||
|
// Ubuntu Mate on PI2: "arm-linux-gnueabihf"
|
||||||
|
// Debian 7.9 on BBB: "arm-linux-gnueabihf"
|
||||||
|
// Raspbian on PI Zero: "arm-linux-gnueabihf"
|
||||||
|
return host.matches("arm.*-linux-gnueabihf");
|
||||||
|
} else if (osArch.contains("amd64")) {
|
||||||
return host.matches("x86_64-.*linux-gnu");
|
return host.matches("x86_64-.*linux-gnu");
|
||||||
} else {
|
} else {
|
||||||
return host.matches("i[3456]86-.*linux-gnu");
|
return host.matches("i[3456]86-.*linux-gnu");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user