1config BR2_PACKAGE_BOTAN_ARCH_SUPPORTS
2	bool
3	default y if BR2_aarch64 || BR2_aarch64_be
4	default y if BR2_arm || BR2_armeb
5	default y if BR2_i386 || BR2_x86_64
6	default y if BR2_m68k
7	default y if BR2_mips || BR2_mipsel || BR2_mips64 || BR2_mips64el
8	default y if BR2_powerpc || BR2_powerpc64 || BR2_powerpc64le
9	default y if BR2_riscv
10	default y if BR2_sparc || BR2_sparc64
11	default y if BR2_s390x
12	default y if BR2_sh
13
14config BR2_PACKAGE_BOTAN
15	bool "botan"
16	depends on BR2_INSTALL_LIBSTDCPP
17	depends on BR2_TOOLCHAIN_GCC_AT_LEAST_10 # C++20
18	depends on BR2_PACKAGE_BOTAN_ARCH_SUPPORTS
19	select BR2_PACKAGE_BOOST_FILESYSTEM if BR2_PACKAGE_BOOST && BR2_TOOLCHAIN_SUPPORTS_ALWAYS_LOCKFREE_ATOMIC_INTS
20	select BR2_PACKAGE_BOOST_SYSTEM if BR2_PACKAGE_BOOST && BR2_TOOLCHAIN_SUPPORTS_ALWAYS_LOCKFREE_ATOMIC_INTS
21	help
22	  Botan is a crypto library for C++
23
24	  http://botan.randombit.net
25
26comment "botan needs a toolchain w/ C++, gcc >= 10"
27	depends on !BR2_INSTALL_LIBSTDCPP \
28		|| !BR2_TOOLCHAIN_GCC_AT_LEAST_10
29	depends on BR2_PACKAGE_BOTAN_ARCH_SUPPORTS
30