@@ -583,6 +583,7 @@ endmenu
source "package/pciutils/Config.in"
source "package/pdbg/Config.in"
source "package/picocom/Config.in"
+ source "package/picotool/Config.in"
source "package/pifmrds/Config.in"
source "package/pigpio/Config.in"
source "package/powertop/Config.in"
new file mode 100644
@@ -0,0 +1,16 @@
+comment "picotool needs a toolchain w/ C++ and gcc >= 4.9"
+ depends on !BR2_INSTALL_LIBSTDCPP || !BR2_HOST_GCC_AT_LEAST_4_9
+
+config BR2_PACKAGE_PICOTOOL
+ bool "picotool"
+ depends on BR2_INSTALL_LIBSTDCPP
+ depends on BR2_HOST_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 USB
+ stdio support from the Raspberry Pi Pico SDK.
+
+ https://github.com/raspberrypi/picotool
+
new file mode 100644
@@ -0,0 +1,3 @@
+# Locally calculated
+sha256 f1746ead7815c13be1152f0645db8ea3b277628eb0110d42a0a186db37d40a91 1.1.2.tar.gz
+sha256 483f865953435b66c443dee7558debe3cc3cf8fcbb6a112fd9fc6a795d53f1f6 LICENSE.TXT
new file mode 100644
@@ -0,0 +1,15 @@
+################################################################################
+#
+# picotool
+#
+################################################################################
+
+PICOTOOL_VERSION = 1.1.2
+PICOTOOL_SITE = https://github.com/raspberrypi/picotool/archive/refs/tags
+PICOTOOL_SOURCE = $(PICOTOOL_VERSION).tar.gz
+PICOTOOL_CONF_OPTS = -DPICO_SDK_PATH=$(STAGING_DIR)/usr/include/pico-sdk
+PICOTOOL_DEPENDENCIES = libusb pico-sdk
+PICOTOOL_LICENSE = BSD-3-Clause
+PICOTOOL_LICENSE_FILES = LICENSE.TXT
+
+$(eval $(cmake-package))
Add the raspberry pi picotool for interacting with rp2040 binaries and devices. Signed-off-by: Marcus Hoffmann <buildroot@bubu1.eu> --- package/Config.in | 1 + package/picotool/Config.in | 16 ++++++++++++++++ package/picotool/picotool.hash | 3 +++ package/picotool/picotool.mk | 15 +++++++++++++++ 4 files changed, 35 insertions(+) create mode 100644 package/picotool/Config.in create mode 100644 package/picotool/picotool.hash create mode 100644 package/picotool/picotool.mk