Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH 1/2] package/pico-sdk: Add host-pico-sdk
@ 2025-08-05  2:59 Jesse Taube
  2025-08-05  2:59 ` [Buildroot] [PATCH 2/2] package/picotool: Add host-picotool Jesse Taube
  0 siblings, 1 reply; 4+ messages in thread
From: Jesse Taube @ 2025-08-05  2:59 UTC (permalink / raw)
  To: buildroot; +Cc: Jesse Taube, Thomas Petazzoni, Marcus Hoffmann

Add a host-pico-sdk package to pico-sdk.
This will allow users to build rpi pico applications on the host system.

Signed-off-by: Jesse Taube <Mr.Bossman075@gmail.com>
---
 package/pico-sdk/pico-sdk.mk | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/package/pico-sdk/pico-sdk.mk b/package/pico-sdk/pico-sdk.mk
index 45db495623..32fb7831d6 100644
--- a/package/pico-sdk/pico-sdk.mk
+++ b/package/pico-sdk/pico-sdk.mk
@@ -19,4 +19,10 @@ define PICO_SDK_INSTALL_STAGING_CMDS
 	cp -r $(@D)/* $(STAGING_DIR)/usr/share/pico-sdk
 endef
 
+define HOST_PICO_SDK_INSTALL_CMDS
+	mkdir -p $(HOST_DIR)/usr/share/pico-sdk
+	cp -r $(@D)/* $(HOST_DIR)/usr/share/pico-sdk
+endef
+
 $(eval $(generic-package))
+$(eval $(host-generic-package))
-- 
2.49.0

_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [Buildroot] [PATCH 2/2] package/picotool: Add host-picotool
  2025-08-05  2:59 [Buildroot] [PATCH 1/2] package/pico-sdk: Add host-pico-sdk Jesse Taube
@ 2025-08-05  2:59 ` Jesse Taube
  2026-01-06 21:41   ` Thomas Petazzoni via buildroot
  0 siblings, 1 reply; 4+ messages in thread
From: Jesse Taube @ 2025-08-05  2:59 UTC (permalink / raw)
  To: buildroot; +Cc: Jesse Taube, Thomas Petazzoni, Marcus Hoffmann

Add a host-picotool package to picotool.
This will allow users to build rpi pico applications on the host system.

Also add cmake as a dependency to target picotool.

Signed-off-by: Jesse Taube <Mr.Bossman075@gmail.com>
---
 package/picotool/picotool.mk | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/package/picotool/picotool.mk b/package/picotool/picotool.mk
index bc76900c07..da81764098 100644
--- a/package/picotool/picotool.mk
+++ b/package/picotool/picotool.mk
@@ -6,9 +6,12 @@
 
 PICOTOOL_VERSION = 2.1.1
 PICOTOOL_SITE = $(call github,raspberrypi,picotool,$(PICOTOOL_VERSION))
+HOST_PICOTOOL_CONF_OPTS = -DPICO_SDK_PATH=$(HOST_DIR)/usr/share/pico-sdk
+HOST_PICOTOOL_DEPENDENCIES = host-libusb host-pico-sdk2 host-cmake
 PICOTOOL_CONF_OPTS = -DPICO_SDK_PATH=$(STAGING_DIR)/usr/share/pico-sdk
-PICOTOOL_DEPENDENCIES = libusb pico-sdk
+PICOTOOL_DEPENDENCIES = libusb pico-sdk2 host-cmake
 PICOTOOL_LICENSE = BSD-3-Clause
 PICOTOOL_LICENSE_FILES = LICENSE.TXT
 
 $(eval $(cmake-package))
+$(eval $(host-cmake-package))
-- 
2.49.0

_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [Buildroot] [PATCH 2/2] package/picotool: Add host-picotool
  2025-08-05  2:59 ` [Buildroot] [PATCH 2/2] package/picotool: Add host-picotool Jesse Taube
@ 2026-01-06 21:41   ` Thomas Petazzoni via buildroot
  2026-01-12 21:37     ` Jesse T
  0 siblings, 1 reply; 4+ messages in thread
From: Thomas Petazzoni via buildroot @ 2026-01-06 21:41 UTC (permalink / raw)
  To: Jesse Taube; +Cc: buildroot, Marcus Hoffmann

Hello Jesse,

On Mon,  4 Aug 2025 22:59:30 -0400
Jesse Taube <mr.bossman075@gmail.com> wrote:

> Add a host-picotool package to picotool.
> This will allow users to build rpi pico applications on the host system.

But what is the use-case for that?

> Also add cmake as a dependency to target picotool.

Nope this change is not correct, the host-cmake dependency is already
handled by cmake-package, if needed.

>  PICOTOOL_VERSION = 2.1.1
>  PICOTOOL_SITE = $(call github,raspberrypi,picotool,$(PICOTOOL_VERSION))
> +HOST_PICOTOOL_CONF_OPTS = -DPICO_SDK_PATH=$(HOST_DIR)/usr/share/pico-sdk
> +HOST_PICOTOOL_DEPENDENCIES = host-libusb host-pico-sdk2 host-cmake

                                                         ^^ sdk2 ?

Also, drop host-cmake.

>  PICOTOOL_CONF_OPTS = -DPICO_SDK_PATH=$(STAGING_DIR)/usr/share/pico-sdk
> -PICOTOOL_DEPENDENCIES = libusb pico-sdk
> +PICOTOOL_DEPENDENCIES = libusb pico-sdk2 host-cmake

sdk2 ?

Also, drop host-cmake.

>  PICOTOOL_LICENSE = BSD-3-Clause
>  PICOTOOL_LICENSE_FILES = LICENSE.TXT

Some reordering would make sense here:

PICOTOOL_VERSION = 2.1.1
PICOTOOL_SITE = $(call github,raspberrypi,picotool,$(PICOTOOL_VERSION))
PICOTOOL_LICENSE = BSD-3-Clause
PICOTOOL_LICENSE_FILES = LICENSE.TXT

PICOTOOL_CONF_OPTS = -DPICO_SDK_PATH=$(STAGING_DIR)/usr/share/pico-sdk
PICOTOOL_DEPENDENCIES = libusb pico-sdk

HOST_PICOTOOL_CONF_OPTS = -DPICO_SDK_PATH=$(HOST_DIR)/usr/share/pico-sdk
HOST_PICOTOOL_DEPENDENCIES = host-libusb host-pico-sdk

So that we have:

1. Generic variables (independent from host/target)

2. Target variables

3. Host variables

Thanks!

Thomas
-- 
Thomas Petazzoni, co-owner and CEO, Bootlin
Embedded Linux and Kernel engineering and training
https://bootlin.com
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [Buildroot] [PATCH 2/2] package/picotool: Add host-picotool
  2026-01-06 21:41   ` Thomas Petazzoni via buildroot
@ 2026-01-12 21:37     ` Jesse T
  0 siblings, 0 replies; 4+ messages in thread
From: Jesse T @ 2026-01-12 21:37 UTC (permalink / raw)
  To: Thomas Petazzoni; +Cc: buildroot, Marcus Hoffmann

On Tue, Jan 6, 2026 at 4:41 PM Thomas Petazzoni
<thomas.petazzoni@bootlin.com> wrote:
>
> Hello Jesse,
>
> On Mon,  4 Aug 2025 22:59:30 -0400
> Jesse Taube <mr.bossman075@gmail.com> wrote:
>
> > Add a host-picotool package to picotool.
> > This will allow users to build rpi pico applications on the host system.
>
> But what is the use-case for that?

If a board comes with a rp2040 or rp2350 and you want to build the
firmware for it inside of buildroot you need picotool on the host
system. The target can then use its picotool to flash the firmware in
the rootfs to the pico.
You can also use the host picotool directly to flash firmware to a pico.

Most of the reason why I think this is a good addition is because
picotool and the pico-sdk are already in buildroot and having a second
version in BR2_EXTERNAL isn't a great solution.

> > Also add cmake as a dependency to target picotool.
>
> Nope this change is not correct, the host-cmake dependency is already
> handled by cmake-package, if needed.
>
> >  PICOTOOL_VERSION = 2.1.1
> >  PICOTOOL_SITE = $(call github,raspberrypi,picotool,$(PICOTOOL_VERSION))
> > +HOST_PICOTOOL_CONF_OPTS = -DPICO_SDK_PATH=$(HOST_DIR)/usr/share/pico-sdk
> > +HOST_PICOTOOL_DEPENDENCIES = host-libusb host-pico-sdk2 host-cmake
>
>                                                          ^^ sdk2 ?
>
> Also, drop host-cmake.
>
> >  PICOTOOL_CONF_OPTS = -DPICO_SDK_PATH=$(STAGING_DIR)/usr/share/pico-sdk
> > -PICOTOOL_DEPENDENCIES = libusb pico-sdk
> > +PICOTOOL_DEPENDENCIES = libusb pico-sdk2 host-cmake
>
> sdk2 ?

I'm honestly not sure how I missed that. It is there because I was
originally using BR2_EXTERNAL and needed a different name.

Thanks,
Jesse Taube

>
> Also, drop host-cmake.
>
> >  PICOTOOL_LICENSE = BSD-3-Clause
> >  PICOTOOL_LICENSE_FILES = LICENSE.TXT
>
> Some reordering would make sense here:
>
> PICOTOOL_VERSION = 2.1.1
> PICOTOOL_SITE = $(call github,raspberrypi,picotool,$(PICOTOOL_VERSION))
> PICOTOOL_LICENSE = BSD-3-Clause
> PICOTOOL_LICENSE_FILES = LICENSE.TXT
>
> PICOTOOL_CONF_OPTS = -DPICO_SDK_PATH=$(STAGING_DIR)/usr/share/pico-sdk
> PICOTOOL_DEPENDENCIES = libusb pico-sdk
>
> HOST_PICOTOOL_CONF_OPTS = -DPICO_SDK_PATH=$(HOST_DIR)/usr/share/pico-sdk
> HOST_PICOTOOL_DEPENDENCIES = host-libusb host-pico-sdk
>
> So that we have:
>
> 1. Generic variables (independent from host/target)
>
> 2. Target variables
>
> 3. Host variables
>
> Thanks!
>
> Thomas
> --
> Thomas Petazzoni, co-owner and CEO, Bootlin
> Embedded Linux and Kernel engineering and training
> https://bootlin.com
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2026-01-12 21:38 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-08-05  2:59 [Buildroot] [PATCH 1/2] package/pico-sdk: Add host-pico-sdk Jesse Taube
2025-08-05  2:59 ` [Buildroot] [PATCH 2/2] package/picotool: Add host-picotool Jesse Taube
2026-01-06 21:41   ` Thomas Petazzoni via buildroot
2026-01-12 21:37     ` Jesse T

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox