1comment "pcm-tools needs a toolchain w/ C++, NPTL"
2	depends on BR2_i386 || BR2_x86_64
3	depends on !BR2_INSTALL_LIBSTDCPP || \
4		!BR2_TOOLCHAIN_HAS_THREADS_NPTL
5
6config BR2_PACKAGE_PCM_TOOLS
7	bool "pcm-tools"
8	depends on BR2_i386 || BR2_x86_64
9	depends on BR2_INSTALL_LIBSTDCPP
10	depends on BR2_TOOLCHAIN_HAS_THREADS_NPTL
11	select BR2_PACKAGE_HWDATA
12	select BR2_PACKAGE_HWDATA_PCI_IDS
13	help
14	  Processor Counter Monitor (PCM) is an application programming
15	  interface (API) and a set of tools based on the API to monitor
16	  performance and energy metrics of Intel(R) Core(TM), Xeon(R),
17	  Atom(TM) and Xeon Phi(TM) processors.
18
19	  https://github.com/opcm/pcm
20
21if BR2_PACKAGE_PCM_TOOLS
22
23config BR2_PACKAGE_PCM_TOOLS_PMU_QUERY
24	bool "install the pmu-query script"
25	default y
26	depends on BR2_PACKAGE_PYTHON3
27	select BR2_PACKAGE_CA_CERTIFICATES # https
28	select BR2_PACKAGE_PYTHON3_SSL # urllib2
29
30comment "pmu-query needs Python3"
31	depends on !BR2_PACKAGE_PYTHON3
32
33endif
34