Skip to content

Enhancement: Support Custom CMake Flags and Selecting Targets in Build Script #3058

@schkovich

Description

@schkovich

Right now, the make-libpico.sh script does not let users pass custom CMake flags or specify build targets. This limitation makes it harder to adapt to local development and more complex continuous integration (CI) workflows.

Motivation

Sometimes, developers only need to build specific targets. For instance, I have just the RP2040 Connect board, so it would be really helpful to compile only what I need to speed up my development process.

In addition, we often require custom CMake flags for different setups. For example, I use the Picoprobe and need a multicore build, which calls for some extra flags.

Proposal

  • Add support for positional arguments to specify build targets.
  • Include a --flags option to allow for custom CMake flags to be forwarded to CMake.

Expected Outcome

  • Backwards compatibility will be maintained.
  • Users will experience improved flexibility for both local development and CI builds.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions