Skip to content
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

Build: core/Makefile - Major overhaul #647

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

HeckHeckHeckHeck
Copy link

@HeckHeckHeckHeck HeckHeckHeckHeck commented Sep 24, 2024

Aims And Claims

  • Build is fully customizable now from the "User Project" without any changes required in this repo
  • Fully backwards compatible with prior version (regression tested with latest DaisyExamples and DaisyBlinkProject)
  • Separate interface from implementation and present it with more detailed documentation on how to use

Changes

  • Add Makefile.conf - declarative build settings interface
  • Fix: support of user defined CFLAGS, CXXFLAGS, ASFLAGS, LDFLAGS
  • Fix: support build config from shell env vars
  • Fix: debug symbols now only in DEBUG build
  • Feature: support user defined suffix for c++ files (USER_SUFFIX_CXX)
  • Provide structure and process to remove items from flags and lists (not just appending to it)
  • Structure the customization into three documented levels of build customization needs (Required, Optional, DangerZone)
  • More error handling of build mis-configuration (warn/error messages)

New Build Options

  • STARTUP_CODE {ASM, C}
  • USER_SUFFIX_CXX
  • C_STANDARD
  • CXX_STANDARD
  • GCC_SPECS
  • new APP_TYPE 'CUSTOM' - allows custom linkerscript
  • LDSCRIPT

@HeckHeckHeckHeck HeckHeckHeckHeck marked this pull request as ready for review September 25, 2024 02:28
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