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

Packages outside RIOT tree #15309

Closed
jdavid opened this issue Oct 27, 2020 · 4 comments · Fixed by #17211
Closed

Packages outside RIOT tree #15309

jdavid opened this issue Oct 27, 2020 · 4 comments · Fixed by #17211
Labels
Area: build system Area: Build system

Comments

@jdavid
Copy link
Contributor

jdavid commented Oct 27, 2020

Description

It's not possible to make packages outside of RIOT's tree, the way it can be done for modules with EXTERNAL_MODULE_DIRS. I get:

make[1]: *** /home/jdavid/sandboxes/UiO/wsn_riot/RIOT/pkg/arduino_sparkfun_bme280: No such file or directory.  Stop.

I added the package to our own tree wsn_riot/pkg but it looks for the package in RIOT's tree. Tried adding EXTERNAL_MODULE_DIRS, didn't find a way in the documentation.

We have to package many Arduino libraries for sensors and it would be easier to do if it was possible to package them out of RIOT's tree, as it's possible to do with sys modules and drivers. This would help others that need the same.

Useful links

None. This concerns the RIOT build system.

@aabadie aabadie added the Area: build system Area: Build system label Oct 27, 2020
@stale
Copy link

stale bot commented Jun 3, 2021

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. If you want me to ignore this issue, please mark it with the "State: don't stale" label. Thank you for your contributions.

@stale stale bot added the State: stale State: The issue / PR has no activity for >185 days label Jun 3, 2021
@stale stale bot closed this as completed Jul 8, 2021
@aabadie aabadie reopened this Jul 8, 2021
@stale stale bot removed the State: stale State: The issue / PR has no activity for >185 days label Jul 8, 2021
@NikLeberg
Copy link
Contributor

Hi there. I'm currently getting up to speed with RIOT and also ran into this issue. I'd like to provide external pkg dirs similar to external modules.
Ultimately I'd love to contribute my created packages and modules back to RIOT with a pr. But while developing them it would be convenient if there was a way to add them from outside of the riot tree.

@jdavid did you find a workaround?

@jdavid
Copy link
Contributor Author

jdavid commented Nov 15, 2021

@NikLeberg No. Probably the easiest is to keep a fork of RIOT.

@NikLeberg
Copy link
Contributor

I've hacked together a (very bad) patch that allows setting EXTERNAL_PKG_DIRS. See: 0001-Makefile-add-EXTERNAL_PKG_DIRS.zip

Maybe it's of interest.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area: build system Area: Build system
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants