Skip to content

Commit c8e3f0c

Browse files
committed
Support Pi 4 on 64bit kernel
1 parent 5ad468f commit c8e3f0c

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

.github/scripts/install-arduino-ide.sh

100644100755
+1-2
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ if [[ "$OSTYPE" == "linux"* ]]; then
1212
OS_NAME="linux32"
1313
elif [[ "$OSBITS" == "x86_64" ]]; then
1414
OS_NAME="linux64"
15-
elif [[ "$OSBITS" == "armv7l" ]]; then
15+
elif [[ "$OSBITS" == "armv7l" || "$OSBITS" == "aarch64" ]]; then
1616
OS_NAME="linuxarm"
1717
else
1818
OS_NAME="$OSTYPE-$OSBITS"
@@ -214,4 +214,3 @@ function build_sketches() # build_sketches <fqbn> <examples-path> <chunk> <total
214214
done
215215
return 0
216216
}
217-

tools/get.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ def get_tool(tool):
122122
f.write(r.content)
123123
f.close()
124124
else:
125-
is_ci = os.environ.get('TRAVIS_BUILD_DIR');
125+
is_ci = os.environ.get('GITHUB_WORKSPACE');
126126
if is_ci:
127127
download_file(url, local_path)
128128
else:
@@ -159,7 +159,7 @@ def identify_platform():
159159
sys_name = platform.system()
160160
sys_platform = platform.platform()
161161
print('System: %s, Info: %s' % (sys_name, sys_platform))
162-
if 'Linux' in sys_name and sys_platform.find('arm') > 0:
162+
if 'Linux' in sys_name and (sys_platform.find('arm') > 0 or sys_platform.find('aarch64')):
163163
sys_name = 'LinuxARM'
164164
if 'CYGWIN_NT' in sys_name:
165165
sys_name = 'Windows'

0 commit comments

Comments
 (0)