1 # SPDX-License-Identifier: GPL-2.0+
2 # Copyright (c) 2012 The Chromium OS Authors.
10 """Autodetect the name of the current project.
12 This looks for signature files/directories that are unlikely to exist except
16 The name of the project, like "linux" or "u-boot". Returns "unknown"
17 if we can't detect the project.
19 top_level = gitutil.GetTopLevel()
21 if os.path.exists(os.path.join(top_level, "include", "u-boot")):
23 elif os.path.exists(os.path.join(top_level, "kernel")):