mirror of
https://codeberg.org/libreboot/lbmk.git
synced 2026-07-19 19:23:24 +02:00
handle/make/config: distclean once per tree
previously, it was possible that the distclean or crossgcc-clean modes were being executed on the same project tree, needlessly. this patch fixes that. Signed-off-by: Leah Rowe <leah@libreboot.org>
This commit is contained in:
@@ -47,6 +47,9 @@ target_dir=""
|
|||||||
tree=""
|
tree=""
|
||||||
cbfstool=""
|
cbfstool=""
|
||||||
|
|
||||||
|
tmpclean="$(mktemp -d -t makeclean.XXXXXXXXXX)" || \
|
||||||
|
err "can't make tmpclean dir"
|
||||||
|
|
||||||
main()
|
main()
|
||||||
{
|
{
|
||||||
while getopts b:m:u:c:x: option
|
while getopts b:m:u:c:x: option
|
||||||
@@ -153,6 +156,10 @@ handle_dependencies()
|
|||||||
fi
|
fi
|
||||||
./update project trees "${project}" "${target}" || \
|
./update project trees "${project}" "${target}" || \
|
||||||
fail "handle_dependencies: can't fetch ${project}/${target}"
|
fail "handle_dependencies: can't fetch ${project}/${target}"
|
||||||
|
elif [ "${mode}" = "distclean" ] || \
|
||||||
|
[ "${mode}" = "crossgcc-clean" ]; then
|
||||||
|
[ -f "${tmpclean}/${tree}" ] && return 1
|
||||||
|
touch "${tmpclean}/${tree}"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# u-boot and coreboot are both compiled with coreboot's crossgcc
|
# u-boot and coreboot are both compiled with coreboot's crossgcc
|
||||||
|
|||||||
Reference in New Issue
Block a user