Skip to content

support user-configuration files#10817

Open
bablokb wants to merge 1 commit intoadafruit:mainfrom
bablokb:userconfig
Open

support user-configuration files#10817
bablokb wants to merge 1 commit intoadafruit:mainfrom
bablokb:userconfig

Conversation

@bablokb
Copy link

@bablokb bablokb commented Feb 14, 2026

This patch adds support for user-specific makefile-includes.

Currently, there are mainly

  • mpconfigboard.mk (board-specific)
  • mpconfigport.mk (port-specific)
  • circuitpy_mpconfig.mk (globals)

User-overrides are possible from the make commandline (except for a number of hardcoded settings), but this gets tedious. This patch allows power-users to put the changes in user-specific files with the added benefit that you can use makefile-logic to limit the changes to specific ports or boards.

User configuration can be maintained out-of-tree, e.g.

make -I ~/proj1 BOARD=xxx
make -I ~/proj2 BOARD=yyy

will build with two different sets of user-configurations.

User configurations are optional, they are included via -include, so a missing include file does not even generate a warning.

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.

1 participant