Skip to content

Commit 6a695c1

Browse files
committed
RSB: Download first and retry downloads a few times
1 parent 6f35d03 commit 6a695c1

File tree

1 file changed

+16
-1
lines changed

1 file changed

+16
-1
lines changed

Makefile

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,10 +96,25 @@ submodule-update:
9696
toolchain:
9797
mkdir -p $(BUILD_LOGS)
9898
rm -rf $(RSB)/rtems/build
99+
# Downloading sometimes fails on the first try. So start with
100+
# downloading twice
99101
cd $(RSB)/rtems && ../source-builder/sb-set-builder \
102+
--source-only-download \
100103
--prefix=$(PREFIX) \
101104
--log=$(BUILD_LOGS)/rsb-toolchain.log \
102-
--with-fortran \
105+
--with-fortran \
106+
$(RTEMS_VERSION)/rtems-$(ARCH) || true
107+
cd $(RSB)/rtems && ../source-builder/sb-set-builder \
108+
--source-only-download \
109+
--prefix=$(PREFIX) \
110+
--log=$(BUILD_LOGS)/rsb-toolchain.log \
111+
--with-fortran \
112+
$(RTEMS_VERSION)/rtems-$(ARCH)
113+
# Now build the tools
114+
cd $(RSB)/rtems && ../source-builder/sb-set-builder \
115+
--prefix=$(PREFIX) \
116+
--log=$(BUILD_LOGS)/rsb-toolchain.log \
117+
--with-fortran \
103118
$(RTEMS_VERSION)/rtems-$(ARCH)
104119
rm -rf $(RSB)/rtems/build
105120

0 commit comments

Comments
 (0)