arm64-support.patch 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. Add alises for arm64 which is same as aarch64
  2. Signed-off-by: Khem Raj <raj.khem@gmail.com>
  3. Upstream-Status: Pending
  4. Index: git/SConstruct
  5. ===================================================================
  6. --- git.orig/SConstruct
  7. +++ git/SConstruct
  8. @@ -1055,6 +1055,7 @@ elif endian == "big":
  9. processor_macros = {
  10. 'arm' : { 'endian': 'little', 'defines': ('__arm__',) },
  11. 'aarch64' : { 'endian': 'little', 'defines': ('__arm64__', '__aarch64__')},
  12. + 'arm64' : { 'endian': 'little', 'defines': ('__arm64__', '__aarch64__')},
  13. 'i386' : { 'endian': 'little', 'defines': ('__i386', '_M_IX86')},
  14. 'ppc64le' : { 'endian': 'little', 'defines': ('__powerpc64__',)},
  15. 's390x' : { 'endian': 'big', 'defines': ('__s390x__',)},
  16. Index: git/src/third_party/IntelRDFPMathLib20U1/SConscript
  17. ===================================================================
  18. --- git.orig/src/third_party/IntelRDFPMathLib20U1/SConscript
  19. +++ git/src/third_party/IntelRDFPMathLib20U1/SConscript
  20. @@ -308,7 +308,7 @@ if processor == 'i386':
  21. elif processor == 'arm':
  22. cpp_defines['IA32'] = '1'
  23. cpp_defines['ia32'] = '1'
  24. -elif processor == "aarch64":
  25. +elif processor == "aarch64" or processor == 'arm64':
  26. cpp_defines['efi2'] = '1'
  27. cpp_defines['EFI2'] = '1'
  28. # Using 64 bit little endian
  29. Index: git/src/third_party/wiredtiger/SConscript
  30. ===================================================================
  31. --- git.orig/src/third_party/wiredtiger/SConscript
  32. +++ git/src/third_party/wiredtiger/SConscript
  33. @@ -151,7 +151,7 @@ condition_map = {
  34. 'POSIX_HOST' : not env.TargetOSIs('windows'),
  35. 'WINDOWS_HOST' : env.TargetOSIs('windows'),
  36. - 'ARM64_HOST' : env['TARGET_ARCH'] == 'aarch64',
  37. + 'ARM64_HOST' : env['TARGET_ARCH'] in ('aarch64', 'arm64'),
  38. 'POWERPC_HOST' : env['TARGET_ARCH'] == 'ppc64le',
  39. 'X86_HOST' : env['TARGET_ARCH'] == 'x86_64',
  40. 'ZSERIES_HOST' : env['TARGET_ARCH'] == 's390x',