Skip to content

Commit f68167d

Browse files
committed
build_packages: add cmd line option to stop after breaking dep loops
This change adds a command line option to build_packages to stop execution of the script after breaking circular dependencies (i.e. before board packages are built). Helpful for debugging package build issues. Signed-off-by: Thilo Fromm <thilofromm@microsoft.com>
1 parent aa9927a commit f68167d

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

build_packages

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,8 @@ DEFINE_boolean skip_toolchain_update "${FLAGS_FALSE}" \
3636
"Don't update toolchain automatically."
3737
DEFINE_boolean skip_chroot_upgrade "${FLAGS_FALSE}" \
3838
"Don't run the chroot upgrade automatically; use with care."
39+
DEFINE_boolean only_resolve_circular_deps "${FLAGS_FALSE}" \
40+
"Don't build all packages; only resolve circular dependencies, then stop."
3941

4042
# include upload options
4143
. "${BUILD_LIBRARY_DIR}/release_util.sh" || exit 1
@@ -275,6 +277,11 @@ if [[ "${FLAGS_usepkgonly}" -eq "${FLAGS_FALSE}" ]]; then
275277
net-libs/nghttp2 systemd
276278
fi
277279

280+
if [[ "${FLAGS_only_resolve_circular_deps}" -eq "${FLAGS_TRUE}" ]]; then
281+
info "Circular dependencies resolved. Stopping as requested."
282+
exit
283+
fi
284+
278285
export KBUILD_BUILD_USER="${BUILD_USER:-build}"
279286
export KBUILD_BUILD_HOST="${BUILD_HOST:-pony-truck.infra.kinvolk.io}"
280287

0 commit comments

Comments
 (0)