Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 6398cde

Browse files
committed
Added 'arm' architecture support in Boards Manager
This is a necessary step to fully support ARM builds of the Arduino IDE See #3549
1 parent 9e5dc5c commit 6398cde

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

‎arduino-core/src/cc/arduino/contributions/packages/HostDependentDownloadableContribution.java‎

Lines changed: 11 additions & 1 deletion
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");

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /