Add support for linux-aarch64 native builds

This commit is contained in:
Andrew Johnson
2020-09-16 00:45:19 -05:00
parent 1ae3bd6c70
commit 22ee229aca
5 changed files with 30 additions and 1 deletions

View File

@ -22,6 +22,7 @@
# darwin-x86 (Intel based Apple running OSX) # darwin-x86 (Intel based Apple running OSX)
# freebsd-x86 (GNU compiler used for host builds) # freebsd-x86 (GNU compiler used for host builds)
# freebsd-x86_64 (GNU compiler used for host builds) # freebsd-x86_64 (GNU compiler used for host builds)
# linux-aarch64 (GNU compiler used for host builds)
# linux-arm (GNU compiler used for host builds) # linux-arm (GNU compiler used for host builds)
# linux-ppc (GNU compiler used for host builds) # linux-ppc (GNU compiler used for host builds)
# linux-ppc64 (GNU compiler used for host builds) # linux-ppc64 (GNU compiler used for host builds)
@ -51,7 +52,6 @@
# windows-x64-debug (MS Visual C++ compiler with debug option for host builds) # windows-x64-debug (MS Visual C++ compiler with debug option for host builds)
# EPICS_HOST_ARCH is a required environment variable
# Do not set EPICS_HOST_ARCH in this file. # Do not set EPICS_HOST_ARCH in this file.
# Use base/startup files to set EPICS_HOST_ARCH or # Use base/startup files to set EPICS_HOST_ARCH or
# provide EPICS_HOST_ARCH on the GNU make command line. # provide EPICS_HOST_ARCH on the GNU make command line.

View File

@ -0,0 +1,8 @@
# CONFIG.linux-aarch64.Common
#
# Definitions for linux-aarch64 host builds
# Sites may override these definitions in CONFIG_SITE.linux-aarch64.Common
#-------------------------------------------------------
#Include definitions common to unix hosts
include $(CONFIG)/os/CONFIG.UnixCommon.Common

View File

@ -0,0 +1,8 @@
# CONFIG.linux-aarch64.linux-aarch64
#
# Definitions for native linux-aarch64 builds
# Override these definitions in CONFIG_SITE.linux-aarch64.linux-aarch64
#-------------------------------------------------------
# Include common gnu compiler definitions
include $(CONFIG)/CONFIG.gnuCommon

View File

@ -0,0 +1,12 @@
# CONFIG_SITE.linux-aarch64.linux-aarch64
#
# Site specific definitions for native linux-aarch64 builds
#-------------------------------------------------------
# It makes sense to include debugging symbols even in optimized builds
# in case you want to attach gdb to the process or examine a core-dump.
# This does cost disk space, but not memory as debug symbols are not
# loaded into RAM when the binary is loaded.
OPT_CFLAGS_YES += -g
OPT_CXXFLAGS_YES += -g

View File

@ -35,6 +35,7 @@ sub HostArch {
return 'linux-x86_64' if m/^x86_64-linux/; return 'linux-x86_64' if m/^x86_64-linux/;
return 'linux-x86' if m/^i[3-6]86-linux/; return 'linux-x86' if m/^i[3-6]86-linux/;
return 'linux-arm' if m/^arm-linux/; return 'linux-arm' if m/^arm-linux/;
return 'linux-aarch64' if m/^aarch64-linux/;
return 'windows-x64' if m/^MSWin32-x64/; return 'windows-x64' if m/^MSWin32-x64/;
return 'win32-x86' if m/^MSWin32-x86/; return 'win32-x86' if m/^MSWin32-x86/;
return "cygwin-x86_64" if m/^x86_64-cygwin/; return "cygwin-x86_64" if m/^x86_64-cygwin/;