mongodb: Enable wiredtiger only on aarch64/x86_64 hosts

Other 64bit arch where its enabled is ppc64le and it does not compile
since build/opt/third_party/wiredtiger/src/checksum/power8/crc32.o is
not built, its not setting HOST_ARCH to ppc64le due to cross compiling

Signed-off-by: Khem Raj <raj.khem@gmail.com>
This commit is contained in:
Khem Raj
2021-06-15 21:30:41 -07:00
parent 8910327c6a
commit de60098b87
@@ -61,6 +61,9 @@ PACKAGECONFIG[system-pcre] = "--use-system-pcre,,libpcre,"
MONGO_ARCH ?= "${HOST_ARCH}" MONGO_ARCH ?= "${HOST_ARCH}"
MONGO_ARCH_powerpc64le = "ppc64le" MONGO_ARCH_powerpc64le = "ppc64le"
WIREDTIGER ?= "off"
WIREDTIGER_x86-64 = "on"
WIREDTIGER_aarch64 = "on"
EXTRA_OESCONS = "PREFIX=${prefix} \ EXTRA_OESCONS = "PREFIX=${prefix} \
DESTDIR=${D} \ DESTDIR=${D} \
@@ -75,7 +78,7 @@ EXTRA_OESCONS = "PREFIX=${prefix} \
--use-system-zlib \ --use-system-zlib \
--nostrip \ --nostrip \
--endian=${@oe.utils.conditional('SITEINFO_ENDIANNESS', 'le', 'little', 'big', d)} \ --endian=${@oe.utils.conditional('SITEINFO_ENDIANNESS', 'le', 'little', 'big', d)} \
--wiredtiger=${@['off','on'][d.getVar('SITEINFO_BITS') != '32']} \ --wiredtiger='${WIREDTIGER}' \
--separate-debug \ --separate-debug \
${PACKAGECONFIG_CONFARGS}" ${PACKAGECONFIG_CONFARGS}"