Skip to content

Reduce repository size by moving camera firmware blobs #1386

@paolostivanin

Description

@paolostivanin

The cameras/ directory includes several firmware blobs that make the PHD2 repo quite large and add big binary deltas to the git history. Most users (and many contributors) don’t actually need these blobs in their checkout.

Would you consider moving the firmware into a small separate repository and pulling it in as a git submodule?

Proposed approach

  1. Create a phd2-firmware repo with only the binary blobs.
  2. Replace the current firmware files in cameras/* with a submodule pointing to it.
  3. Keep paths the same so builds and runtime behavior don’t change.

Benefits

  1. Smaller, faster-to-clone main repo
  2. No binary bloat in git history
  3. Cleaner separation of code vs. firmware
  4. Easier packaging for distros

If this sounds good, I can prepare a PR with the full transition.

Thanks for considering it!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions