-
-
Notifications
You must be signed in to change notification settings - Fork 48
Expand file tree
/
Copy pathstrip_toolchain.sh
More file actions
executable file
·31 lines (26 loc) · 858 Bytes
/
strip_toolchain.sh
File metadata and controls
executable file
·31 lines (26 loc) · 858 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#!/bin/bash
echo -n "Looking for configuration file... "
if [ -f ./config.sh ]; then
echo "Found."
. ./config.sh
else
echo "Not found"
fi
if [ ! -z "$BUILD_DKPRO_PACKAGE" ] ; then
VERSION="$BUILD_DKPRO_PACKAGE"
fi
. ./select_toolchain.sh
if [ ! -z "$BUILD_DKPRO_INSTALLDIR" ] ; then
INSTALLDIR="$BUILD_DKPRO_INSTALLDIR"
elif [ ! -z "$DEVKITPRO" ]; then
INSTALLDIR="$DEVKITPRO"
else
echo "please set install dir in config.sh or set $DEVKITPRO"
fi
#---------------------------------------------------------------------------------
# Add installed devkit to the path, adjusting path on minsys
#---------------------------------------------------------------------------------
TOOLPATH=$(echo $INSTALLDIR | sed -e 's/^\([a-zA-Z]\):/\/\1/')
export PATH=$PATH:$TOOLPATH/$package/bin
export prefix=$INSTALLDIR/$CROSSBUILD/$package
. ./strip_bins.sh