From f91198ca0e7be7a3414e4367cda500683a73701c Mon Sep 17 00:00:00 2001 From: David Michael Date: Thu, 18 May 2017 18:11:11 -0700 Subject: [PATCH] build_packages: also build all torcx images by default The idea is that once the installed board packages have changed, the sysroot that was used to build any existing torcx packages may no longer be compatible. It will therefore run build_torcx_store, passing relevant options to it, to build a new torcx store of images with the current sysroot. This adds --skip_torcx_store to use the previous behavior. --- build_packages | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/build_packages b/build_packages index 9f2bfb3f4c..f869bd45ad 100755 --- a/build_packages +++ b/build_packages @@ -36,6 +36,8 @@ DEFINE_boolean skip_toolchain_update "${FLAGS_FALSE}" \ "Don't update toolchain automatically." DEFINE_boolean skip_chroot_upgrade "${FLAGS_FALSE}" \ "Don't run the chroot upgrade automatically; use with care." +DEFINE_boolean skip_torcx_store "${FLAGS_FALSE}" \ + "Don't build a new torcx store from the updated sysroot." # include upload options . "${BUILD_LIBRARY_DIR}/release_util.sh" || exit 1 @@ -251,5 +253,10 @@ test_image_content "${BOARD_ROOT}" # upload packages if enabled upload_packages +# Build a new torcx store with the updated packages, passing flags through. +if [ "${FLAGS_skip_torcx_store}" -eq "${FLAGS_FALSE}" ]; then + "${SCRIPTS_DIR}"/build_torcx_store --board="${BOARD}" +fi + info "Builds complete" command_completed