1comment "lightning needs a toolchain w/ dynamic library, threads"
2	depends on BR2_sparc || BR2_i386 || BR2_x86_64 || BR2_mips || \
3		BR2_mipsel || BR2_arm || BR2_powerpc || BR2_RISCV_64 || \
4		BR2_mips64 || BR2_mips64el
5	depends on BR2_STATIC_LIBS || !BR2_TOOLCHAIN_HAS_THREADS
6
7config BR2_PACKAGE_LIGHTNING
8	bool "lightning"
9	depends on BR2_sparc || BR2_i386 || BR2_x86_64 || BR2_mips || \
10		BR2_mipsel || BR2_arm || BR2_powerpc || BR2_RISCV_64 || \
11		BR2_mips64 || BR2_mips64el
12	depends on !BR2_STATIC_LIBS
13	depends on BR2_TOOLCHAIN_HAS_THREADS
14	help
15	  GNU lightning is a library that generates
16	  assembly language code at run-time.
17
18	  https://www.gnu.org/software/lightning/
19
20if BR2_PACKAGE_LIGHTNING
21
22config BR2_PACKAGE_LIGHTNING_DISASSEMBLER
23	bool "enable disassembler"
24	depends on !BR2_nios2 # binutils
25	depends on BR2_USE_WCHAR # binutils
26	select BR2_PACKAGE_BINUTILS
27	select BR2_PACKAGE_ZLIB
28	help
29	  Enable the GNU lightning disassembler.
30
31comment "lightning disassembler needs a toolchain w/ wchar"
32	depends on !BR2_nios2
33	depends on !BR2_USE_WCHAR
34
35endif
36