summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLeah Rowe <leah@libreboot.org>2026-09-20 21:52:06 +0100
committerLeah Rowe <leah@libreboot.org>2026-09-20 21:52:42 +0100
commit645002ac2b63f953e8bcf9894a5482e449e72342 (patch)
tree5296f631aef4cc452a7d17ac6f0dcdbb1655d19a
parent75d0d60a03eaf947a14a8e373b5319e301856c67 (diff)
mk: allow same tree/target dry builds
otherwise, -d coreboot default dosen't work for example, which prevents building coreboot utils. Signed-off-by: Leah Rowe <leah@libreboot.org>
-rwxr-xr-xmk6
1 files changed, 3 insertions, 3 deletions
diff --git a/mk b/mk
index b063fb7b..372b7ab9 100755
--- a/mk
+++ b/mk
@@ -203,7 +203,7 @@ handle_target()
# if using configs, we never build from the master target
[ "$noconfig" != "y" ] && [ "$tree" = "$target" ] && \
- return 0
+ $if_not_dry_build return 0
$if_build $if_not_fetch \
x_ $postmake; :
@@ -249,7 +249,7 @@ configure_target()
[ ! -f "CHANGELOG" ] && x_ fetch_trees; :
[ "$noconfig" != "y" ] && [ "$tree" = "$target" ] && \
- return 1; :
+ $if_not_dry_build return 1; :
}
try_target_config()
@@ -298,7 +298,7 @@ mk_dependencies()
handle_buildcfg()
{
[ "$noconfig" != "y" ] && [ "$tree" = "$target" ] && \
- return 0
+ $if_not_dry_build return 0
[ ! -d "$srcdir" ] || for y in "$defscan"/*
do