xref: /OK3568_Linux_fs/buildroot/package/mongodb/Config.in (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1# from https://docs.mongodb.com/manual/installation/#supported-platforms
2config BR2_PACKAGE_MONGODB_ARCH_SUPPORTS
3	bool
4	# ARM needs LDREX/STREX, so ARMv6+
5	default y if BR2_arm && !BR2_ARM_CPU_ARMV4 && !BR2_ARM_CPU_ARMV5
6	default y if BR2_aarch64 || BR2_x86_64
7	depends on BR2_TOOLCHAIN_SUPPORTS_ALWAYS_LOCKFREE_ATOMIC_INTS # boost-filesystem
8
9config BR2_PACKAGE_MONGODB
10	bool "mongodb"
11	depends on BR2_PACKAGE_MONGODB_ARCH_SUPPORTS
12	depends on BR2_TOOLCHAIN_USES_GLIBC # needs glibc malloc_usable_size
13	depends on BR2_USE_WCHAR
14	depends on BR2_TOOLCHAIN_HAS_THREADS
15	depends on BR2_INSTALL_LIBSTDCPP
16	depends on BR2_TOOLCHAIN_GCC_AT_LEAST_7 # C++17
17	select BR2_PACKAGE_BOOST
18	select BR2_PACKAGE_BOOST_FILESYSTEM
19	select BR2_PACKAGE_BOOST_IOSTREAMS
20	select BR2_PACKAGE_BOOST_PROGRAM_OPTIONS
21	select BR2_PACKAGE_BOOST_SYSTEM
22	select BR2_PACKAGE_PCRE
23	select BR2_PACKAGE_PCRE_UTF # runtime
24	select BR2_PACKAGE_SNAPPY
25	select BR2_PACKAGE_SQLITE
26	select BR2_PACKAGE_YAML_CPP
27	select BR2_PACKAGE_ZLIB
28	help
29	  MongoDB is a cross-platform document-oriented database
30	  (NoSQL).
31
32	  It uses JSON-like documents with dynamic schemas (BSON),
33	  making the integration of data in certain types of
34	  applications easier and faster.
35
36	  https://www.mongodb.org/
37
38comment "mongodb needs a glibc toolchain w/ wchar, threads, C++, gcc >= 7"
39	depends on !BR2_USE_WCHAR || !BR2_TOOLCHAIN_HAS_THREADS || \
40		!BR2_INSTALL_LIBSTDCPP || !BR2_TOOLCHAIN_USES_GLIBC || \
41		!BR2_TOOLCHAIN_GCC_AT_LEAST_7
42	depends on BR2_PACKAGE_MONGODB_ARCH_SUPPORTS
43