10000 Added 'arm' architecture support in Boards Manager · arduino/Arduino@6398cde · GitHub
[go: up one dir, main page]

Skip to content

Commit 6398cde

Browse files

Original file line numberDiff line numberDiff line change
@@ -50,7 +50,17 @@ public boolean isCompatible(Platform platform) {
5050
String host = getHost();
5151

5252
if (osName.contains("Linux")) {
53-
if (osArch.contains("amd64")) {
53+
if (osArch.equals("arm")) {
54+
// Raspberry PI, BBB or other ARM based host
55+
56+
// PI: "arm-linux-gnueabihf"
57+
// Arch-linux on PI2: "armv7l-unknown-linux-gnueabihf"
58+
// Raspbian on PI2: "arm-linux-gnueabihf"
59+
// Ubuntu Mate on PI2: "arm-linux-gnueabihf"
60+
// Debian 7.9 on BBB: "arm-linux-gnueabihf"
61+
// Raspbian on PI Zero: "arm-linux-gnueabihf"
62+
return host.matches("arm.*-linux-gnueabihf");
63+
} else if (osArch.contains("amd64")) {
5464
return host.matches("x86_64-.*linux-gnu");
5565
} else {
5666
return host.matches("i[3456]86-.*linux-gnu");