[riot-notifications] [RIOT-OS/RIOT] build-system: auto-locate modules by name (#16465)

Marian Buschsieweke notifications at github.com
Mon May 10 17:58:53 CEST 2021


### Contribution description

This PR introduces the `MODULE_DIRS` variable that works just like `EXTERNAL_MODULE_DIRS`, but it is intended for internal modules. The major difference is that external modules can have the same name as an internal module, in which case the external module is used instead
of the internal one. This allows to provide drop-in replacements of internal modules, which can be useful during development e.g. to quickly benchmark different implementations.

### Testing procedure

All applications for all boards should still build and yield identical binaries.

### Issues/PRs references

Follow up of https://github.com/RIOT-OS/RIOT/pull/16104

You can view, comment on, or merge this pull request online at:

  https://github.com/RIOT-OS/RIOT/pull/16465

-- Commit Summary --

  * sys/bus: move to sys/sys_bus
  * build-system: auto-locate modules by name

-- File Changes --

    M Makefile.include (10)
    M drivers/Makefile (2)
    M makefiles/dependency_resolution.inc.mk (4)
    A makefiles/locate_modules.inc.mk (11)
    M sys/Makefile (29)
    M sys/Makefile.dep (1)
    R sys/sys_bus/Makefile (2)
    R sys/sys_bus/sys_bus_init.c (0)

-- Patch Links --

https://github.com/RIOT-OS/RIOT/pull/16465.patch
https://github.com/RIOT-OS/RIOT/pull/16465.diff

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/RIOT-OS/RIOT/pull/16465
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20210510/20a7f268/attachment.htm>


More information about the notifications mailing list