-
Notifications
You must be signed in to change notification settings - Fork 1.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
Makefile: try to install clang-tidy package explicitly #2042
Conversation
I made this commit because docs/contributing.md says Run tests locally (make install_prerequisites followed by make presubmit). and "make presubmit" failed due to lack of clang-tidy command. After applying this commit, "make presubmit" survives up to start testing on current kernel. But it is annoying that current kernel crashes during "make presubmit" because I don't mean to crash current kernel; I just want to confirm that I'm following right steps for making pull requests. Is there a better command instead of "make presubmit" ? [ 640.060691] [drm:vmw_cmdbuf_work_func [vmwgfx]] ERROR Command "SVGA_3D_CMD_BIND_GB_SURFACE" causing device error. |
Commit 43f1389 ("Makefile: enable clang-tidy in presubmit tests") added clang-tidy to only tools/docker/env/Dockerfile file. We should try to explicitly install clang-tidy in Makefile for those who don't use docker. /bin/sh: 1: clang-tidy: not found (...snipped...) Makefile:250: recipe for target 'tidy' failed make[2]: *** [tidy] Error 127 make[2]: *** Waiting for unfinished jobs.... (...snipped...) Makefile:269: recipe for target 'presubmit_smoke' failed make[1]: *** [presubmit_smoke] Error 2 Makefile:264: recipe for target 'presubmit' failed make: *** [presubmit] Error 2
2e834cd
to
ee09c23
Compare
Commit 43f1389 ("Makefile: enable clang-tidy in presubmit tests") added clang-tidy to only tools/docker/env/Dockerfile file.
We should try to explicitly install clang-tidy in Makefile for those who don't use docker.