From e1de878e570381cd15d21e5a4cc886783d95b85d Mon Sep 17 00:00:00 2001 From: andrewdavidmackenzie Date: Tue, 4 Mar 2025 13:06:24 +0100 Subject: [PATCH] Fix pico builds --- porky/src/porky.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/porky/src/porky.rs b/porky/src/porky.rs index d957c7b9..341a8d79 100644 --- a/porky/src/porky.rs +++ b/porky/src/porky.rs @@ -20,6 +20,7 @@ use embassy_executor::Spawner; #[cfg(all(feature = "usb", feature = "wifi"))] use embassy_futures::select::{select, Either}; use embassy_rp::bind_interrupts; +#[cfg(feature = "pico2")] use embassy_rp::block::ImageDef; use embassy_rp::flash::{Blocking, Flash}; #[cfg(feature = "wifi")] @@ -81,6 +82,7 @@ mod mdns; /// The Pi Pico GPIO [PinDefinition]s that get passed to the GUI mod pin_descriptions; +#[cfg(feature = "pico2")] #[link_section = ".start_block"] #[used] pub static IMAGE_DEF: ImageDef = ImageDef::secure_exe();