Skip to content

RP2040/RP2350: Migrate variants to new structure#7345

Merged
thebentern merged 1 commit intomeshtastic:masterfrom
vidplace7:variant-rp2xx0
Jul 20, 2025
Merged

RP2040/RP2350: Migrate variants to new structure#7345
thebentern merged 1 commit intomeshtastic:masterfrom
vidplace7:variant-rp2xx0

Conversation

@vidplace7
Copy link
Member

Builds upon / relies upon #7340

Migrate RP2040 and RP2350 variants to new directory structure.

Draft until #7340 is merged

@vidplace7 vidplace7 force-pushed the variant-rp2xx0 branch 12 times, most recently from 0e45872 to 8ce8f55 Compare July 15, 2025 03:10
@caveman99 caveman99 requested a review from Copilot July 16, 2025 15:18
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR migrates RP2040 and RP2350 board variants to a new hierarchical directory structure, organizing them under chip-specific subdirectories (variants/rp2040/ and variants/rp2350/) instead of the flat structure previously used.

Key changes:

  • Updates include paths in platformio.ini files to reflect the new directory structure
  • Standardizes build_flags formatting across all variants
  • Updates build_src_filter references for affected variants

Reviewed Changes

Copilot reviewed 11 out of 25 changed files in this pull request and generated 9 comments.

Show a summary per file
File Description
variants/rp2350/rpipico2w/platformio.ini Updates include path and reformats build_flags
variants/rp2350/rpipico2/platformio.ini Updates include path and reformats build_flags
variants/rp2040/senselora_rp2040/platformio.ini Updates include path to new directory structure
variants/rp2040/rpipicow/platformio.ini Updates include path and reformats build_flags
variants/rp2040/rpipico/platformio.ini Updates include path and reformats build_flags
variants/rp2040/rpipico-slowclock/platformio.ini Updates include path and reformats build_flags
variants/rp2040/rp2040-lora/platformio.ini Updates include path and reformats build_flags
variants/rp2040/rak11310/platformio.ini Updates include path, build_src_filter, and reformats build_flags
variants/rp2040/nibble_rp2040/platformio.ini Updates include path and reformats build_flags
variants/rp2040/feather_rp2040_rfm95/platformio.ini Updates include path and reformats build_flags
variants/rp2040/ec_catsniffer/platformio.ini Updates include path, reformats build_flags, and converts comment style

build_flags =
${rp2350_base.build_flags}
-D RPI_PICO2
-I variants/rp2350/rpipico2
Copy link

Copilot AI Jul 16, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[nitpick] Inconsistent spacing in include flag. Should be '-Ivariants/rp2350/rpipico2' (no space after -I) to match the pattern used in other variants.

Copilot uses AI. Check for mistakes.
-DDEBUG_RP2040_PORT=Serial
build_flags = ${rp2040_base.build_flags}
-D SENSELORA_RP2040
-I variants/rp2040/senselora_rp2040
Copy link

Copilot AI Jul 16, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[nitpick] Inconsistent spacing in include flag. Should be '-Ivariants/rp2040/senselora_rp2040' (no space after -I) to match the pattern used in other variants.

Copilot uses AI. Check for mistakes.
build_flags =
${rp2040_base.build_flags}
-D RPI_PICO
-I variants/rp2040/rpipicow
Copy link

Copilot AI Jul 16, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[nitpick] Inconsistent spacing in include flag. Should be '-Ivariants/rp2040/rpipicow' (no space after -I) to match the pattern used in other variants.

Copilot uses AI. Check for mistakes.
build_flags =
${rp2040_base.build_flags}
-D RPI_PICO
-I variants/rp2040/rpipico
Copy link

Copilot AI Jul 16, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[nitpick] Inconsistent spacing in include flag. Should be '-Ivariants/rp2040/rpipico' (no space after -I) to match the pattern used in other variants.

Copilot uses AI. Check for mistakes.
build_flags =
${rp2040_base.build_flags}
-D RP2040_LORA
-I variants/rp2040/rp2040-lora
Copy link

Copilot AI Jul 16, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[nitpick] Inconsistent spacing in include flag. Should be '-Ivariants/rp2040/rp2040-lora' (no space after -I) to match the pattern used in other variants.

Copilot uses AI. Check for mistakes.
build_flags =
${rp2040_base.build_flags}
-D RAK11310
-I variants/rp2040/rak11310
Copy link

Copilot AI Jul 16, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[nitpick] Inconsistent spacing in include flag. Should be '-Ivariants/rp2040/rak11310' (no space after -I) to match the pattern used in other variants.

Copilot uses AI. Check for mistakes.
build_flags =
${rp2040_base.build_flags}
-D PRIVATE_HW
-I variants/rp2040/nibble_rp2040
Copy link

Copilot AI Jul 16, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[nitpick] Inconsistent spacing in include flag. Should be '-Ivariants/rp2040/nibble_rp2040' (no space after -I) to match the pattern used in other variants.

Copilot uses AI. Check for mistakes.
build_flags =
${rp2040_base.build_flags}
-D RP2040_FEATHER_RFM95
-I variants/rp2040/feather_rp2040_rfm95
Copy link

Copilot AI Jul 16, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[nitpick] Inconsistent spacing in include flag. Should be '-Ivariants/rp2040/feather_rp2040_rfm95' (no space after -I) to match the pattern used in other variants.

Copilot uses AI. Check for mistakes.
build_flags =
${rp2040_base.build_flags}
-D RPI_PICO
-I variants/rp2040/ec_catsniffer
Copy link

Copilot AI Jul 16, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[nitpick] Inconsistent spacing in include flag. Should be '-Ivariants/rp2040/ec_catsniffer' (no space after -I) to match the pattern used in other variants.

Copilot uses AI. Check for mistakes.
@vidplace7 vidplace7 added the github_actions Pull requests that update GitHub Actions code label Jul 18, 2025
@vidplace7 vidplace7 force-pushed the variant-rp2xx0 branch 3 times, most recently from 8ee8f48 to 99e7d8f Compare July 20, 2025 00:58
@vidplace7
Copy link
Member Author

vidplace7 commented Jul 20, 2025

All PlatformIO envs in this PR are building correctly (fixed a small issue that was preventing senselora_rp2040 from compiling, in the process)

Ready to merge!

@vidplace7 vidplace7 marked this pull request as ready for review July 20, 2025 03:10
@thebentern thebentern merged commit 9313d04 into meshtastic:master Jul 20, 2025
101 of 102 checks passed
oscgonfer pushed a commit to fablabbcn/smartcitizen-meshtastic that referenced this pull request Jul 22, 2025
oscgonfer pushed a commit to fablabbcn/smartcitizen-meshtastic that referenced this pull request Jul 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

github_actions Pull requests that update GitHub Actions code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants