Lines Matching +full:host +full:- +full:gcc
7 [ -z "$PREFIX" ] && PREFIX="/usr/toybox"
12 while [ ! -z "$1" ]
15 [ "$1" == "--symlink" ] && LINK_TYPE="-s"
18 [ "$1" == "--uninstall" ] && UNINSTALL=Uninstall
21 [ "$1" == "--force" ] && DO_FORCE="-f"
24 [ "$1" == "--long" ] && LONG_PATH="bin/"
26 # Symlink host toolchain binaries to destination to create cross compile $PATH
27 [ "$1" == "--airlock" ] && AIRLOCK=1
35 $DEBUG $HOSTCC -I . scripts/install.c -o generated/instlist || exit 1
38 echo "${UNINSTALL:-Install} commands..."
42 if [ -z "$UNINSTALL" ]
44 mkdir -p "${PREFIX}/${LONG_PATH}" &&
45 rm -f "${PREFIX}/${LONG_PATH}/toybox" &&
48 rm -f "${PREFIX}/${LONG_PATH}/toybox" 2>/dev/null
60 if [ -z "$LONG_PATH" ]
67 if [ -z "$UNINSTALL" ]
69 mkdir -p "$DOTPATH" || exit 1
72 if [ -z "$LINK_TYPE" ]
79 DOTPATH="$(echo $DOTPATH | sed -e 's@[^/]*/@../@g')"$LONG_PATH
87 if [ -z "$UNINSTALL" ]
91 rm -f $i || EXIT=1
95 [ -z "$AIRLOCK" ] && exit 0
97 # --airlock creates a single directory you can point the $PATH to for cross
101 # variations in the host distro), but that everything else is NOT in your PATH
102 # and thus various configure stages won't find things on thie host that won't
103 # be there on the target (such as the distcc build noticing the host has
107 # For now symlink the host version. This list must go away by 1.0.
111 # "gcc" should go away for llvm, but some things still hardwire it
112 TOOLCHAIN="as cc ld gcc objdump"
114 if [ ! -z "$AIRLOCK" ]
120 if [ ! -f "$i" ]
128 which -a "$i" | while read j
130 if [ ! -e "$FALLBACK/$i" ]
132 mkdir -p "$FALLBACK" &&
133 ln -sf "$j" "$FALLBACK/$i" || exit 1
137 FALLBACK="$PREFIX/fallback-$X"
140 if [ ! -f "$PREFIX/$i" ]
143 [ -z "$PEDANTIC" ] || EXIT=1