mirror of
https://codeberg.org/libreboot/lbmk.git
synced 2026-07-16 13:16:47 +02:00
don't use build.list to detect multi-tree projects
instead, check for the presence of target.cfg files not in config/project/ but config/project/tree/ the way this check is done, it merely returns 1 if config/project/*/target.cfg is detected, and returns 0 in all other cases, even if config/project/target.cfg exists that way, if the maintainer accidentally adds a target.cfg in the main directory, the given multi-tree project will not break Signed-off-by: Leah Rowe <leah@libreboot.org>
This commit is contained in:
@@ -117,10 +117,7 @@ fetch_trees()
|
||||
{
|
||||
for x in $(items config/git); do
|
||||
./update trees -f "$x" || $err "$_xm: fetch $x"
|
||||
done
|
||||
for x in config/*/build.list; do
|
||||
[ -f "$x" ] && xp="${x#*/}" && xp="${xp%/*}"
|
||||
[ ! -f "$x" ] || [ -L "$xp" ] || x_ rm -Rf "src/$xp/$xp"
|
||||
singletree "$x" || x_ rm -Rf "src/$x/$x"
|
||||
done
|
||||
rmgit .
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user