Skip to content

Sort some modules into ALWAYS-BUILD in mpconfig #2197

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Oct 7, 2019
Merged

Sort some modules into ALWAYS-BUILD in mpconfig #2197

merged 3 commits into from
Oct 7, 2019

Conversation

hierophect
Copy link
Collaborator

@hierophect hierophect commented Oct 3, 2019

The following modules have no unique HAL component capable of disrupting the build process of a very early stage port.

  • math
  • struct
  • supervisor
  • time

Thus, there is never any reason to not include them, even when the MINIMAL_BUILD flag is set. This PR adds an ALWAYS_BUILD flag, which is set unless instructed otherwise, to identify these modules.

Resolves #2191

@hierophect hierophect requested review from ladyada and tannewt October 3, 2019 19:30
Copy link
Member

@tannewt tannewt left a comment

Choose a reason for hiding this comment

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

Thanks for doing this! Just a couple questions and then it should be good to go.

@hierophect
Copy link
Collaborator Author

@tannewt I revised my test which was missing several module dependancies. USB HID and MIDI are out, but Storage and Random only rely on stub-level implementations of Microcontroller and OS (they use functions that use only CMSIS or don't suffer from being empty/returning 0). Should we consider these stubs a part of the "base build" of Circuitpython? Or should I exclude them?

Copy link
Member

@tannewt tannewt left a comment

Choose a reason for hiding this comment

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

Ya, it's ok to use the stubs. This looks good.

@tannewt
Copy link
Member

tannewt commented Oct 5, 2019

Merge if it's ready. :-)

@hierophect hierophect merged commit 59ed879 into adafruit:master Oct 7, 2019
@hierophect hierophect deleted the always-build-modules branch October 7, 2019 13:09
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.

STM32: MINIMAL_BUILD flag contains modules that aren't HAL dependent
2 participants