-
Notifications
You must be signed in to change notification settings - Fork 1.4k
all: add clean_rules config to help CleanPath for specific targets #5842
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
Closed
Closed
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Configuration for modules looks more and more like a pile of hacks on top of hacks.
Main kernel has src+obj dirs. For modules you added only obj dirs (ModuleObj). And now source dirs are specified separately and in a different way with new CleanRules concept. There is also no mapping between module objs dirs and clean rules.
Please think of a consistent way to configure all this.
E.g. is it possible to provide a set of parameters for the main kernel (e.g. src+obj) and the same set of parameters for separate module build dirs? Then the configuration would be a consistent set of kernel build tree directories.
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.
Hi @dvyukov
There are multiple paths for module_srcs, we don't know which module_src to use for th e module, so I think module_src +module_obj won't work.
Besides, I checked with google android team in https://issuetracker.google.com/issues/408907076.
so, I think
/proc/self/cwdwill always be there and there is no clean way to get correct map for pattern like/proc/self/cwd/common/../soc-repo:kernel_platform/soc-repo.And in current syzkaller, we have
which might work only for aosp kernel if we put kernel in aosp tree, but it won't work for vendor/oems who put kernel in different dirs.
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.
They have different prefixes, why wouldn't we know?
That's what CleanPath already does for the main kernel: if path starts with build dir, it replaces it with src dir.
If we have a set of paths (build/obj/src) for each module, all of them can be replaced.
But you just did it with the current patch and clean path rules. That's no different.
Yes, that's another ugly hack we have. We just keep piling special hacks for each new case.