Skip to content

Commit

Permalink
RSB: Download first and retry downloads a few times
Browse files Browse the repository at this point in the history
  • Loading branch information
c-mauderer committed Jun 5, 2024
1 parent 6f35d03 commit 38c71cd
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -96,10 +96,25 @@ submodule-update:
toolchain:
mkdir -p $(BUILD_LOGS)
rm -rf $(RSB)/rtems/build
# Downloading sometimes fails on the first try. So start with
# downloading twice
cd $(RSB)/rtems && ../source-builder/sb-set-builder \
--source-only-download \
--prefix=$(PREFIX) \
--log=$(BUILD_LOGS)/rsb-toolchain.log \
--with-fortran \
--with-fortran \
$(RTEMS_VERSION)/rtems-$(ARCH) || true
cd $(RSB)/rtems && ../source-builder/sb-set-builder \
--source-only-download \
--prefix=$(PREFIX) \
--log=$(BUILD_LOGS)/rsb-toolchain.log \
--with-fortran \
$(RTEMS_VERSION)/rtems-$(ARCH) || true
# Now build the tools. This will do a third download try
cd $(RSB)/rtems && ../source-builder/sb-set-builder \
--prefix=$(PREFIX) \
--log=$(BUILD_LOGS)/rsb-toolchain.log \
--with-fortran \
$(RTEMS_VERSION)/rtems-$(ARCH)
rm -rf $(RSB)/rtems/build

Expand Down

0 comments on commit 38c71cd

Please sign in to comment.