is_kernel_source_tree

Function is_kernel_source_tree 

Source
pub fn is_kernel_source_tree(path: &Path) -> bool
Expand description

Whether path is the root of a Linux kernel source tree.

Uses the same Makefile + Kconfig heuristic that acquire_local_source_tree gates on, so a directory this predicate accepts is exactly one --kernel <path> would auto-build from. Shared with the shell subcommand’s cwd auto-selection (shell_kernel_or_cwd) to keep detection and resolution in sync.