xref: /OK3568_Linux_fs/buildroot/package/uhd/Config.in (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1comment "uhd needs a toolchain w/ C++, NPTL, wchar, dynamic library"
2	depends on BR2_USE_MMU
3	depends on BR2_TOOLCHAIN_SUPPORTS_ALWAYS_LOCKFREE_ATOMIC_INTS
4	depends on !BR2_INSTALL_LIBSTDCPP || !BR2_USE_WCHAR || \
5		!BR2_TOOLCHAIN_HAS_THREADS_NPTL || BR2_STATIC_LIBS
6
7comment "uhd needs a toolchain not affected by GCC bug 64735"
8	depends on BR2_TOOLCHAIN_HAS_GCC_BUG_64735
9
10config BR2_PACKAGE_UHD
11	bool "uhd"
12	depends on BR2_INSTALL_LIBSTDCPP
13	depends on !BR2_STATIC_LIBS
14	depends on BR2_TOOLCHAIN_SUPPORTS_ALWAYS_LOCKFREE_ATOMIC_INTS # boost-atomic, boost-filesystem
15	depends on !BR2_TOOLCHAIN_HAS_GCC_BUG_64735 # boost-thread
16	depends on BR2_TOOLCHAIN_HAS_THREADS_NPTL
17	depends on BR2_USE_MMU # use fork()
18	depends on BR2_USE_WCHAR # boost
19	select BR2_PACKAGE_BOOST
20	select BR2_PACKAGE_BOOST_ATOMIC
21	select BR2_PACKAGE_BOOST_CHRONO
22	select BR2_PACKAGE_BOOST_DATE_TIME
23	select BR2_PACKAGE_BOOST_FILESYSTEM
24	select BR2_PACKAGE_BOOST_MATH
25	select BR2_PACKAGE_BOOST_PROGRAM_OPTIONS
26	select BR2_PACKAGE_BOOST_REGEX
27	select BR2_PACKAGE_BOOST_SERIALIZATION
28	select BR2_PACKAGE_BOOST_SYSTEM
29	select BR2_PACKAGE_BOOST_THREAD
30	help
31	  Universal Software Radio Peripheral (USRP) Hardware Driver
32
33	  https://kb.etthus.com
34
35if BR2_PACKAGE_UHD
36
37config BR2_PACKAGE_UHD_B100
38	bool "b100 support"
39	depends on BR2_TOOLCHAIN_GCC_AT_LEAST_4_9 # libusb
40	select BR2_PACKAGE_UHD_USB
41	help
42	  enable B100 support
43
44comment "B100 support needs a toolchain w/ gcc >= 4.9"
45	depends on !BR2_TOOLCHAIN_GCC_AT_LEAST_4_9
46
47config BR2_PACKAGE_UHD_B200
48	bool "b200 support"
49	depends on BR2_TOOLCHAIN_GCC_AT_LEAST_4_9 # libusb
50	select BR2_PACKAGE_UHD_USB
51	help
52	  enable B200 support
53
54comment "B200 support needs a toolchain w/ gcc >= 4.9"
55	depends on !BR2_TOOLCHAIN_GCC_AT_LEAST_4_9
56
57config BR2_PACKAGE_UHD_E300
58	bool "E300 support"
59	select BR2_PACKAGE_UHD_MPMD
60	help
61	  enable E300 support
62
63config BR2_PACKAGE_UHD_E320
64	bool "E320 support"
65	select BR2_PACKAGE_UHD_MPMD
66	help
67	  enable E320 support
68
69config BR2_PACKAGE_UHD_EXAMPLES
70	bool "uhd-examples"
71	help
72	  Examples
73
74config BR2_PACKAGE_UHD_MPMD
75	bool "MPMD support"
76	help
77	  enable MPMD support
78
79config BR2_PACKAGE_UHD_N230
80	bool "N230 support"
81	help
82	  enable N230 support
83
84config BR2_PACKAGE_UHD_N300
85	bool "N300 support"
86	select BR2_PACKAGE_UHD_MPMD
87	help
88	  enable N300 support
89
90config BR2_PACKAGE_UHD_N320
91	bool "N320 support"
92	select BR2_PACKAGE_UHD_MPMD
93	help
94	  enable N320 support
95
96config BR2_PACKAGE_UHD_OCTOCLOCK
97	bool "OctoClock support"
98	help
99	  enable OctoClock support
100
101comment "uhd python API needs python3 and a toolchain w/ glibc or musl"
102	depends on !BR2_PACKAGE_PYTHON3
103	depends on !BR2_PACKAGE_PYTHON_NUMPY_ARCH_SUPPORTS
104	depends on !(BR2_TOOLCHAIN_USES_GLIBC && BR2_TOOLCHAIN_USES_MUSL) # python-numpy
105
106config BR2_PACKAGE_UHD_PYTHON
107	bool "python API support"
108	depends on BR2_PACKAGE_PYTHON3
109	depends on BR2_PACKAGE_PYTHON_NUMPY_ARCH_SUPPORTS
110	depends on BR2_TOOLCHAIN_USES_GLIBC || BR2_TOOLCHAIN_USES_MUSL # python-numpy
111	select BR2_PACKAGE_PYTHON_NUMPY
112	select BR2_PACKAGE_PYTHON_REQUESTS
113	help
114	  enable python API support
115
116config BR2_PACKAGE_UHD_RFNOC
117	bool "RFNoC support"
118	help
119	  enable RFNoC support
120
121config BR2_PACKAGE_UHD_USB
122	bool "USB support"
123	depends on BR2_TOOLCHAIN_GCC_AT_LEAST_4_9 # libusb
124	select BR2_PACKAGE_LIBUSB
125	help
126	  enable UHD USB support
127
128comment "USB support needs a toolchain w/ gcc >= 4.9"
129	depends on !BR2_TOOLCHAIN_GCC_AT_LEAST_4_9
130
131config BR2_PACKAGE_UHD_USRP1
132	bool "USRP1 support"
133	depends on BR2_TOOLCHAIN_GCC_AT_LEAST_4_9 # libusb
134	select BR2_PACKAGE_UHD_USB
135	help
136	  enable USRP1 support
137
138comment "USRP1 support needs a toolchain w/ gcc >= 4.9"
139	depends on !BR2_TOOLCHAIN_GCC_AT_LEAST_4_9
140
141config BR2_PACKAGE_UHD_USRP2
142	bool "USRP2 support"
143	help
144	  enable USRP2 support
145
146comment "uhd utils depends on python API support"
147	depends on !BR2_PACKAGE_UHD_PYTHON
148
149config BR2_PACKAGE_UHD_UTILS
150	bool "uhd-utils"
151	depends on BR2_PACKAGE_UHD_PYTHON
152	select BR2_PACKAGE_PYTHON_SIX
153	help
154	  uhd-utils
155
156config BR2_PACKAGE_UHD_X300
157	bool "X300 support"
158	help
159	  enable X300 support
160
161endif
162