pkg/jerryscript: build into '$(BINDIR)' and cleanups#9824
pkg/jerryscript: build into '$(BINDIR)' and cleanups#9824aabadie merged 6 commits intoRIOT-OS:masterfrom
Conversation
|
@cgundogan any idea why changing this |
|
It does not fail on my computer and with docker with a relative path so will retry without the absolute one. |
|
Non parallel build works Parallel does not Now it is reproducible I can investigate. |
|
Found that it is because I replaced the default target by I think it should not even include |
| @@ -1,15 +1,14 @@ | |||
| BUILD_DIR ?= $(CURDIR)/riot | |||
| BUILD_DIR ?= $(BINDIR)/jerryscript | |||
There was a problem hiding this comment.
why not use BUILD_DIR ?= $(PKG_BUILDDIR) instead?
There was a problem hiding this comment.
First it is not defined there, and also it is the directory where the package is cloned.
As described in the commit message and the title of this PR. It is the goal of this one to move toward out of source build, and all normal modules in RIOT build in $(BINDIR)/module_name.
With out of source build, the package could be cloned only once for all platforms (20M * 120 boards == a lot).
There was a problem hiding this comment.
ok, then we definitely need to work on the naming of RIOT directories. Because if PKG_BUILDDIR is the directory where the package is cloned and not build, its very confusing - the name is why I suggested to use that for BUILD_DIR.
There was a problem hiding this comment.
Some of the packages are still build into there when they use their own build system.
|
@cladmi, what is the status of this PR ? It would at least require a rebase |
Do not include Makefile.base as 'DIRS' are not used here. Also if 'all' target was to be used, there would be two rules creating `$(BINDIR)/jerryscript.a`. By default `Makefile.jerryscript` executes `libjerry` as it is the first target.
Remove unknown rules from .PHONY. Make 'all' be the default target for jerryscript and execute `all` target. This way no definition order issue could happen in the future.
Build into the BINDIR directory instead of the source repository. This makes 'clean' work as expected without other intervention. Also it goes in the direction of having the package source repository board independent.
babed28 to
3a125b6
Compare
|
I squashed to remove the commits that were more on the finding what to do path. There are now the 5 first commits (check the order locally and not from github as it uses I could split if wanted. The test command using |
aabadie
left a comment
There was a problem hiding this comment.
Changes are OK and tested locally on Arduino-Zero with success.
All commit messages contains the right explanation for the changes, this helps understanding the changes.
ACK
|
Thank you for the review. |
Contribution description
Build into the BINDIR directory instead of the source repository.
This makes 'clean' work as expected without other intervention.
Also it goes in the direction of having the package source repository
board independent.
I also included cleanup for
jerryscriptmakefiles self described in the commits messages.Testing procedure
Clean actually now cleans.
In master we had
Where riot contained all the build files.
Issues/PRs references
Part of #9820