1config BR2_PACKAGE_OPENCSD_ARCH_SUPPORTS
2	bool
3	default y if BR2_arm
4	default y if BR2_armeb
5	default y if BR2_aarch64
6	default y if BR2_aarch64_be
7
8config BR2_PACKAGE_OPENCSD
9	bool "opencsd"
10	depends on BR2_PACKAGE_OPENCSD_ARCH_SUPPORTS
11	depends on !BR2_STATIC_LIBS
12	depends on BR2_INSTALL_LIBSTDCPP
13	depends on BR2_TOOLCHAIN_GCC_AT_LEAST_4_8 # C++11
14	help
15	  This library provides an API suitable for the decode of
16	  ARM(r) CoreSight(tm) trace streams.
17
18	  OpenCSD is for example an optional dependency in the Linux
19	  "perf" tool, starting from kernel version 5.1.
20
21	  https://github.com/Linaro/OpenCSD
22
23comment "opencsd needs a toolchain w/ C++11, gcc >= 4.8, dynamic library"
24	depends on BR2_PACKAGE_OPENCSD_ARCH_SUPPORTS
25	depends on BR2_STATIC_LIBS \
26		|| !BR2_INSTALL_LIBSTDCPP \
27		|| !BR2_TOOLCHAIN_GCC_AT_LEAST_4_8
28