[riot-notifications] [RIOT-OS/RIOT] make/pkg: allow to set SOURCE_LOCAL per pkg (#11533)

Hauke Petersen notifications at github.com
Thu May 16 14:48:56 CEST 2019


### Contribution description
When working with packages in RIOT, the `PKG_SOURCE_LOCAL` variable is extremely helpful. But it currently needs to be set in the package Makefile, hence introducing 'debug' code into the RIOT source tree.

This PR allows to set this variable globally on a per-pkg basis, by simply mapping the package name in a variable name, e.g. building with `PKG_MYPKG_SOURCE_LOCAL=/some/dir make ...` will build an application with `PKG_SOURCE_LOCAL=/some/dir` set for the package  `RIOT/pkg/mypkg`.

Only caveat so far: if set in the applications Makefile, it needs to be exported.

### Testing procedure
Take a package and a fitting RIOT application of your choice and set the according `PKG_xxx_SOURCE_LOCAL` variable to the local source folder of that package. You should see in the build output, that the package is actually copied from the specified location to the bin folder, instead of being checked out from the configured repository.

### Issues/PRs references
none
You can view, comment on, or merge this pull request online at:

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

-- Commit Summary --

  * make/pkg: allow to set SOURCE_LOCAL per pkg

-- File Changes --

    M pkg/pkg.mk (1)

-- Patch Links --

https://github.com/RIOT-OS/RIOT/pull/11533.patch
https://github.com/RIOT-OS/RIOT/pull/11533.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/11533
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20190516/206e1ab5/attachment.html>


More information about the notifications mailing list