-
Notifications
You must be signed in to change notification settings - Fork 138
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 fixes #559
Build fixes #559
Conversation
As Dmitry described in [1] changelog the current way of detecting -s option is broken for new make. Changing the tools/build -s option detection the same way as it was fixed for root Makefile in [1]. [1] 4bf7358 ("kbuild: Port silent mode detection to future gnu make.") Cc: Dmitry Goncharov <[email protected]> Signed-off-by: Jiri Olsa <[email protected]> Tested-by: Arnaldo Carvalho de Melo <[email protected]> Acked-by: Namhyung Kim <[email protected]> Cc: Peter Zijlstra <[email protected]> Cc: KP Singh <[email protected]> Cc: Martin KaFai Lau <[email protected]> Cc: Song Liu <[email protected]> Cc: Yonghong Song <[email protected]> Cc: John Fastabend <[email protected]> Cc: Hao Luo <[email protected]> Cc: Ian Rogers <[email protected]> Cc: Stanislav Fomichev <[email protected]> Cc: Daniel Borkmann <[email protected]> Cc: Quentin Monnet <[email protected]> Cc: Arnaldo Carvalho de Melo <[email protected]> Cc: Andrii Nakryiko <[email protected]> Cc: Alexei Starovoitov <[email protected]> Cc: Ingo Molnar <[email protected]> Cc: Alexander Shishkin <[email protected]> Cc: [email protected] Cc: [email protected] Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Namhyung Kim <[email protected]>
@ddiss could you please check if this fixes the parallel build issue on you side? Not a great solution but it is fairly isolated and simple. |
Thanks for the patch! will give it a spin on the Build Service today |
a639c25
to
b4e2599
Compare
The change looks good, but
https://www.gnu.org/software/make/manual/html_node/Parallel-Disable.html doesn't really explain how |
tools/build does not support parallel builds when objects are shared between build targets. Keep the test that uses the most common object first and insert a build barrier to avoid rebuilding common objects. Signed-off-by: Octavian Purdila <[email protected]>
Separate the tests targets in a different set so that we don't install them with make install. Signed-off-by: Octavian Purdila <[email protected]>
b4e2599
to
e758fd8
Compare
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.
LGTM.
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.
Looks good and works for me - thanks!
Backports a patch from upstream to fix build output for test targets and add a workaround to fix parallel builds for tests. Fixes #558.
Jiri Olsa (1):
tools/build: Fix -s detection code in tools/build/Makefile.build
Octavian Purdila (2):
lkl: add tests build barrier
lkl: don't install tests
tools/build/Makefile.build | 10 +++++++++-
tools/lkl/Makefile | 15 +++++++++++----
tools/lkl/Targets | 17 +++++++++++------
3 files changed, 31 insertions(+), 11 deletions(-)