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

Consolidated export templates for gcc_arm target and maintained purity of the source folders #1769

Closed
wants to merge 5 commits into from

Commits on Jun 3, 2016

  1. makefile exports now create and use bin for all built files

    I know this looks really weird, here is why:
    The first time the makefile is run, in the project root, the first part of the if is triggered.
    This part of the makefile records the root directory and creates the bin diretory.
    Then it runs itself in the bin diretory. This triggers the else part of the makefile.
    The last bit of magic is that VPATH=... line.
    The VPATH is a special make variable that specifies extra directories to search for dependencies in.
    This particular assignment of VPATH allows make to find sources from the root, but forces all results to be in the bin dir.
    
    This has two benifits:
    1. the makefile is written as if it's in the project root, but results are always in bin
    2. the clean phony target may just remove bin, as this is always correct
    theotherjimmy committed Jun 3, 2016
    Configuration menu
    Copy the full SHA
    c52227d View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    284810b View commit details
    Browse the repository at this point in the history
  3. Made the efm32 targets use the common makefile template

    The prior implementation of the efm32 makefile templates used a custom version of the bin diretory creation.
    My version has a few advantages:
    1. the targets are always forced into bin.
       this is different from the old style, where any custom rules might polute the project root directory
    2. smaller templates
    3. fewer total templates
    theotherjimmy committed Jun 3, 2016
    Configuration menu
    Copy the full SHA
    4259533 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    60fb4ff View commit details
    Browse the repository at this point in the history

Commits on Jun 6, 2016

  1. Configuration menu
    Copy the full SHA
    edd1932 View commit details
    Browse the repository at this point in the history