Skip to content

Conversation

@gemenerik
Copy link
Member

Support setting multiple targets per binary in manifest.json

For example;

        "color-led.bin": {
            "platform": "deck",
            "target": ["bcColorLEDBottom:color", "bcColorLEDTop:color"],
            "type": "fw",
            "release": "{{ color-led-firmware-version }}",
            "repository": "color-led-deck-firmware"
        }

Supports single target (string, ensures backwards compatibility), or multiple (list)

Copy link

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 enhances the bootloader's manifest parsing to support flashing a single binary to multiple targets. Previously, each binary in manifest.json could only specify one target (as a string). Now it supports both a single target (string) and multiple targets (list), maintaining backwards compatibility.

Key Changes:

  • Added logic to handle target field in manifest.json as either a string or list
  • Loop through all targets and create separate FlashArtifact instances for each
  • Moved legacy nRF51 requirement logic inside the target loop

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@gemenerik gemenerik force-pushed the rik/single-bin-multi-target branch from c11c99d to cc07351 Compare November 17, 2025 15:02
Copy link
Member

@ataffanel ataffanel left a comment

Choose a reason for hiding this comment

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

Great concise efficient change!

@gemenerik gemenerik merged commit dc0d606 into master Nov 18, 2025
1 check passed
@gemenerik gemenerik deleted the rik/single-bin-multi-target branch November 18, 2025 13:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants