Skip to content

Commit ef789ed

Browse files
committed
don't download crtls & rules archives if not building them
1 parent 502f832 commit ef789ed

File tree

1 file changed

+12
-10
lines changed

1 file changed

+12
-10
lines changed

build-devkit.sh

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -183,21 +183,23 @@ scriptdir=$(pwd)/$basedir/scripts
183183

184184
archives="binutils-${BINUTILS_VER}.tar.xz gcc-${GCC_VER}.tar.xz newlib-${NEWLIB_VER}.tar.gz"
185185

186-
if [ $VERSION -eq 1 ]; then
187-
188-
archives="devkitarm-rules-$DKARM_RULES_VER.tar.xz devkitarm-crtls-$DKARM_CRTLS_VER.tar.xz $archives"
189-
fi
190-
191186
if [ $VERSION -eq 2 ]; then
192-
193-
archives="binutils-${MN_BINUTILS_VER}.tar.bz2 devkitppc-rules-$DKPPC_RULES_VER.tar.xz $archives"
187+
archives="binutils-${MN_BINUTILS_VER}.tar.bz2 $archives"
194188
fi
195189

196-
if [ $VERSION -eq 3 ]; then
190+
if [ "$BUILD_DKPRO_SKIP_CRTLS" != "1" ]; then
191+
if [ $VERSION -eq 1 ]; then
192+
archives="devkitarm-rules-$DKARM_RULES_VER.tar.xz devkitarm-crtls-$DKARM_CRTLS_VER.tar.xz $archives"
193+
fi
197194

198-
archives="devkita64-rules-$DKA64_RULES_VER.tar.xz $archives"
199-
fi
195+
if [ $VERSION -eq 2 ]; then
196+
archives="devkitppc-rules-$DKPPC_RULES_VER.tar.xz $archives"
197+
fi
200198

199+
if [ $VERSION -eq 3 ]; then
200+
archives="devkita64-rules-$DKA64_RULES_VER.tar.xz $archives"
201+
fi
202+
fi
201203

202204
if [ ! -z "$BUILD_DKPRO_SRCDIR" ] ; then
203205
SRCDIR="$BUILD_DKPRO_SRCDIR"

0 commit comments

Comments
 (0)