comment "picotool needs a toolchain w/ C++, threads, gcc >= 4.9"
	depends on !BR2_INSTALL_LIBSTDCPP || \
		!BR2_TOOLCHAIN_HAS_THREADS || \
		!BR2_TOOLCHAIN_GCC_AT_LEAST_4_9

config BR2_PACKAGE_PICOTOOL
	bool "picotool"
	depends on BR2_INSTALL_LIBSTDCPP
	depends on BR2_TOOLCHAIN_HAS_THREADS # libusb
	depends on BR2_TOOLCHAIN_GCC_AT_LEAST_4_9 # libusb
	select BR2_PACKAGE_LIBUSB
	select BR2_PACKAGE_PICO_SDK
	help
	  picotool is a tool for inspecting rp2040 binaries and
	  interacting with rp2040 devices when they are in bootsel
	  mode or devices USBstdio support from the Raspberry Pi Pico
	  SDK.

	  https://github.com/raspberrypi/picotool
