-
Notifications
You must be signed in to change notification settings - Fork 2k
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
BUILD_IN_DOCKER ignores USEMODULE #14504
Comments
I can't just use |
On a completely different occasion I noticed: |
(I use it to generate different binaries for local size comparisons) |
I took some look at this and I think there is several ways to fix this. First of all, the reason why A quick fix to
But I am really unsure about all the side effects... Regarding |
To give more insights on this,
I can provide a PR but we need to choose an option before. |
@dylad I'll try yo take a look at this soon, dealing with some deadlines, in the meantime maybe @cladmi has some background on why this was left as is when first encountered? There is this issue #12027 where some context was give, I would need to re-check if issues mentioned there are still present. |
From memory only and without re-checking the current state. Indeed your first solution is the simplest one and leaves it to the user. For the second option, the "clean" way of doing it, is moving the USEMODULE that are in the application module in dedicated For the third option, not sure if there are still any side-effects possible for this. For BINDIRBASE and all these variables, I did some poc removing the "override" and ":= abspath" replaced by a check if the variables were absolute but I think never went to proposing the command line API change |
@dylad for In any case, we should combine this with option 1 since that solution works for call cases where we are passing environment variables, CFLAGS and others right? |
Personally I'm fine with the third option.
I am wondering how we can document it properly as this is not something obvious. |
|
Then we can go ahead with this solution ! |
Cannot reproduce the issue anymore, apparently this was fixed and just forgotten to be closed. |
Description
When building with docker, it is not possible to externally provide modules to an application. Where modifying the Makefile (e.g. in automated build environments) is not an option this is a big hindrance.
Steps to reproduce the issue
Expected results
The environment variable
USEMODULE
is included in thedocker run
commandActual results
The enviroment variable
USEMODULE
is not included in thedocker run
commandand the module is not compiled in (can be tested by using the
pktbuf
command)Versions
Seems to be the case since
docker
was introduced, up until2020.10-devel
.But also whatever docker is used with the
ubuntu-latest
platform in Github Actions.The text was updated successfully, but these errors were encountered: