Skip to content

Commit

Permalink
Support Pi 4 on 64bit kernel
Browse files Browse the repository at this point in the history
  • Loading branch information
me-no-dev committed Oct 1, 2019
1 parent 5ad468f commit c8e3f0c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
3 changes: 1 addition & 2 deletions .github/scripts/install-arduino-ide.sh
100644 → 100755
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ if [[ "$OSTYPE" == "linux"* ]]; then
OS_NAME="linux32" OS_NAME="linux32"
elif [[ "$OSBITS" == "x86_64" ]]; then elif [[ "$OSBITS" == "x86_64" ]]; then
OS_NAME="linux64" OS_NAME="linux64"
elif [[ "$OSBITS" == "armv7l" ]]; then elif [[ "$OSBITS" == "armv7l" || "$OSBITS" == "aarch64" ]]; then
OS_NAME="linuxarm" OS_NAME="linuxarm"
else else
OS_NAME="$OSTYPE-$OSBITS" OS_NAME="$OSTYPE-$OSBITS"
Expand Down Expand Up @@ -214,4 +214,3 @@ function build_sketches() # build_sketches <fqbn> <examples-path> <chunk> <total
done done
return 0 return 0
} }

4 changes: 2 additions & 2 deletions tools/get.py
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ def get_tool(tool):
f.write(r.content) f.write(r.content)
f.close() f.close()
else: else:
is_ci = os.environ.get('TRAVIS_BUILD_DIR'); is_ci = os.environ.get('GITHUB_WORKSPACE');
if is_ci: if is_ci:
download_file(url, local_path) download_file(url, local_path)
else: else:
Expand Down Expand Up @@ -159,7 +159,7 @@ def identify_platform():
sys_name = platform.system() sys_name = platform.system()
sys_platform = platform.platform() sys_platform = platform.platform()
print('System: %s, Info: %s' % (sys_name, sys_platform)) print('System: %s, Info: %s' % (sys_name, sys_platform))
if 'Linux' in sys_name and sys_platform.find('arm') > 0: if 'Linux' in sys_name and (sys_platform.find('arm') > 0 or sys_platform.find('aarch64')):
sys_name = 'LinuxARM' sys_name = 'LinuxARM'
if 'CYGWIN_NT' in sys_name: if 'CYGWIN_NT' in sys_name:
sys_name = 'Windows' sys_name = 'Windows'
Expand Down

0 comments on commit c8e3f0c

Please sign in to comment.