[riot-commits] [RIOT-OS/RIOT] 7c85e6: Makefile.base: fix AR keeping removed source files...

Francisco Acosta fco.ja.ac at gmail.com
Wed Mar 14 19:28:36 CET 2018


  Branch: refs/heads/master
  Home:   https://github.com/RIOT-OS/RIOT
  Commit: 7c85e6e0e95013677bc2cdc0bccbabc589d7931d
      https://github.com/RIOT-OS/RIOT/commit/7c85e6e0e95013677bc2cdc0bccbabc589d7931d
  Author: Gaëtan Harter <gaetan.harter at fu-berlin.de>
  Date:   2018-03-14 (Wed, 14 Mar 2018)

  Changed paths:
    M Makefile.base

  Log Message:
  -----------
  Makefile.base: fix AR keeping removed source files objects

AR incrementally adds file without removing files.
If a c file is deleted or disabled(submodule removal) it is not removed from
archive and still ends up in the final elf file.

This fix removes the need to do 'make clean' for this case.

However it will break cases where an APPLICATION and a MODULE or two modules
have the same name and only worked because source files names where different.


  Commit: e5d234e2f497bcf856226b446e02fbeb4fd96dfd
      https://github.com/RIOT-OS/RIOT/commit/e5d234e2f497bcf856226b446e02fbeb4fd96dfd
  Author: Gaëtan Harter <gaetan.harter at fu-berlin.de>
  Date:   2018-03-14 (Wed, 14 Mar 2018)

  Changed paths:
    M doc/doxygen/src/creating-modules.md

  Log Message:
  -----------
  doc: add warning that MODULE name should be unique

Modules produce an output archive called `${MODULE}.a` if several modules use
the same name, the output is overwritten.


  Commit: 3af570bd57ff3ea54ccee08a0e81e99ef6b3da18
      https://github.com/RIOT-OS/RIOT/commit/3af570bd57ff3ea54ccee08a0e81e99ef6b3da18
  Author: Francisco Acosta <fco.ja.ac at gmail.com>
  Date:   2018-03-14 (Wed, 14 Mar 2018)

  Changed paths:
    M Makefile.base
    M doc/doxygen/src/creating-modules.md

  Log Message:
  -----------
  Merge pull request #7952 from cladmi/pr/ar_delete_old_files

Makefile.base: fix AR keeping removed source files objects


Compare: https://github.com/RIOT-OS/RIOT/compare/4f190015a9d0...3af570bd57ff


More information about the commits mailing list