]>
git.ipfire.org Git - people/ms/u-boot.git/blob - tools/patman/project.py
1 # Copyright (c) 2012 The Chromium OS Authors.
3 # SPDX-License-Identifier: GPL-2.0+
11 """Autodetect the name of the current project.
13 This looks for signature files/directories that are unlikely to exist except
17 The name of the project, like "linux" or "u-boot". Returns "unknown"
18 if we can't detect the project.
20 top_level
= gitutil
.GetTopLevel()
22 if os
.path
.exists(os
.path
.join(top_level
, "include", "u-boot")):
24 elif os
.path
.exists(os
.path
.join(top_level
, "kernel")):