diff options
Diffstat (limited to 'meta-oe/recipes-dbs/mongodb/mongodb/arm64-support.patch')
-rw-r--r-- | meta-oe/recipes-dbs/mongodb/mongodb/arm64-support.patch | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/meta-oe/recipes-dbs/mongodb/mongodb/arm64-support.patch b/meta-oe/recipes-dbs/mongodb/mongodb/arm64-support.patch new file mode 100644 index 000000000..9046bb2f4 --- /dev/null +++ b/meta-oe/recipes-dbs/mongodb/mongodb/arm64-support.patch | |||
@@ -0,0 +1,43 @@ | |||
1 | Add alises for arm64 which is same as aarch64 | ||
2 | |||
3 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
4 | Upstream-Status: Pending | ||
5 | |||
6 | Index: git/SConstruct | ||
7 | =================================================================== | ||
8 | --- git.orig/SConstruct | ||
9 | +++ git/SConstruct | ||
10 | @@ -990,6 +990,7 @@ elif endian == "big": | ||
11 | processor_macros = { | ||
12 | 'arm' : { 'endian': 'little', 'defines': ('__arm__',) }, | ||
13 | 'aarch64' : { 'endian': 'little', 'defines': ('__arm64__', '__aarch64__')}, | ||
14 | + 'arm64' : { 'endian': 'little', 'defines': ('__arm64__', '__aarch64__')}, | ||
15 | 'i386' : { 'endian': 'little', 'defines': ('__i386', '_M_IX86')}, | ||
16 | 'ppc64le' : { 'endian': 'little', 'defines': ('__powerpc64__',)}, | ||
17 | 's390x' : { 'endian': 'big', 'defines': ('__s390x__',)}, | ||
18 | Index: git/src/third_party/IntelRDFPMathLib20U1/SConscript | ||
19 | =================================================================== | ||
20 | --- git.orig/src/third_party/IntelRDFPMathLib20U1/SConscript | ||
21 | +++ git/src/third_party/IntelRDFPMathLib20U1/SConscript | ||
22 | @@ -301,7 +301,7 @@ if processor == 'i386': | ||
23 | elif processor == 'arm': | ||
24 | cpp_defines['IA32'] = '1' | ||
25 | cpp_defines['ia32'] = '1' | ||
26 | -elif processor == "aarch64": | ||
27 | +elif processor == "aarch64" or processor == 'arm64': | ||
28 | cpp_defines['efi2'] = '1' | ||
29 | cpp_defines['EFI2'] = '1' | ||
30 | # Using 64 bit little endian | ||
31 | Index: git/src/third_party/wiredtiger/SConscript | ||
32 | =================================================================== | ||
33 | --- git.orig/src/third_party/wiredtiger/SConscript | ||
34 | +++ git/src/third_party/wiredtiger/SConscript | ||
35 | @@ -139,7 +139,7 @@ condition_map = { | ||
36 | 'POSIX_HOST' : not env.TargetOSIs('windows'), | ||
37 | 'WINDOWS_HOST' : env.TargetOSIs('windows'), | ||
38 | |||
39 | - 'ARM64_HOST' : env['TARGET_ARCH'] == 'aarch64', | ||
40 | + 'ARM64_HOST' : env['TARGET_ARCH'] in ('aarch64', 'arm64'), | ||
41 | 'POWERPC_HOST' : env['TARGET_ARCH'] == 'ppc64le', | ||
42 | 'X86_HOST' : env['TARGET_ARCH'] == 'x86_64', | ||
43 | 'ZSERIES_HOST' : env['TARGET_ARCH'] == 's390x', | ||