-
Notifications
You must be signed in to change notification settings - Fork 2.1k
examples/{javascript/lua}: correctly declare rules to embed scripts. #10456
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
Conversation
|
To give some context, Lines 484 to 487 in 7816497
However it cannot really be tested alone, as right now, there is the To test it I added this diff: diff --git a/Makefile.include b/Makefile.include
index cd6ed166b..86f371c21 100644
--- a/Makefile.include
+++ b/Makefile.include
@@ -491,6 +491,7 @@ pkg-build-%: $(BUILDDEPS)
$(QQ)"$(MAKE)" -C $(RIOTPKG)/$*
clean:
+ sleep 5
-@for i in $(USEPKG) ; do "$(MAKE)" -C $(RIOTPKG)/$$i clean ; done
-@rm -rf $(BINDIR)
-@rm -rf $(SCANBUILD_OUTPUTDIR)And tested with #10344 , (based on this PR) it works when doing. for the 3 applications. When using only the last commit of the PR, which removes the |
|
@smlng could you also give a try with mac, just for good measures. There should not be issues with the directory targets as they are explicit, but you never know. |
|
@cladmi works! |
cladmi
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Minor final nitpicks as you are changing things in the files:
- You changed some of the
@to$(Q)and added some$(Q)but not all. Please either change none or change all. Would even be better in separate commits. - I would prefer if it stays consistent with the empty lines, I like the way you did it in the
javascriptMakefile withJSandJS_Htogether. But this one is really as you are changing the files together.
3e17123 to
64fcfff
Compare
|
I added the missing $(Q) |
Custom targets should be added to BUILDDEPS. Without this patch `make -j clean all" fails because of weird race condition (trying to clean while building is kind of contradictory anyways.)
Custom targets should be added to BUILDDEPS. Without this patch `make -j clean all" fails because of weird race condition (trying to clean while building is kind of contradictory anyways.)
Custom targets should be added to BUILDDEPS. Without this patch `make -j clean all" fails because of weird race condition (trying to clean while building is kind of contradictory anyways.)
cladmi
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ACK this solves the issue when used with #10344 and does it using the correct way.
|
Rerunning murdock as build was failing. |
Contribution description
There are some hacky hacks in the build systems so that one can do
that is,
cleanandallat the same time with parallelism, and not have both conflicts.Script demos (lua, js) have to add new targets to compile scripts into the app. These were not correctly declared and caused simultaneous cleaning and building to fail.
Aside from this, the declarations were not well done in general. Adding the script targets to RIOTBUILD_CONFIG_HEADER is a hack, the correct variable is BUILDDEPS.
Testing procedure
For each package, run
make -j clean all. It should build.Issues/PRs references
This bug is exposed by #10344 (not because of any logical reason, only because of the hackyness required to have "make clean all" work).