comparison cross-compiler.sh @ 48:0f77e2472d27

Strip binaries.
author Rob Landley <rob@landley.net>
date Mon, 18 Dec 2006 17:58:04 -0500
parents edaa86240321
children 18c065749b79
comparison
equal deleted inserted replaced
47:edaa86240321 48:0f77e2472d27
50 # Change the FSF's crazy names to something reasonable. 50 # Change the FSF's crazy names to something reasonable.
51 51
52 cd "${CROSS}"/bin && 52 cd "${CROSS}"/bin &&
53 for i in "${CROSS_TARGET}"-* 53 for i in "${CROSS_TARGET}"-*
54 do 54 do
55 strip "$i" && 55 mv "$i" "${ARCH}"-"$(echo "$i" | sed 's/.*-//')" || dienow
56 mv "$i" "${ARCH}"-"$(echo "$i" | sed 's/.*-//')"
57 done && 56 done &&
58 57
59 # Build and install gcc wrapper script. 58 # Build and install gcc wrapper script.
60 59
61 mv "${ARCH}-gcc" gcc-unwrapped && 60 mv "${ARCH}-gcc" gcc-unwrapped &&
137 136
138 make ARCH=${KARCH} CROSS_COMPILE=${ARCH}- 137 make ARCH=${KARCH} CROSS_COMPILE=${ARCH}-
139 138
140 EOF 139 EOF
141 140
141 # Strip everything
142
143 cd "$CROSS"
144 for i in `find bin -type f` `find "$CROSS_TARGET" -type f`
145 do
146 strip "$i" 2> /dev/null
147 done
148 #for i in `find lib -type f` `find gcc/lib -type f`
149 #do
150 # "${ARCH}-strip" "$i" 2> /dev/null
151 #done
152
142 echo -n creating cross-compiler-"${ARCH}".tar.bz2 && 153 echo -n creating cross-compiler-"${ARCH}".tar.bz2 &&
143 cd "${TOP}" 154 cd "${TOP}"
144 { tar cjvCf build cross-compiler-"${ARCH}".tar.bz2 cross-compiler-"${ARCH}" || 155 { tar cjvCf build cross-compiler-"${ARCH}".tar.bz2 cross-compiler-"${ARCH}" ||
145 dienow 156 dienow
146 } | dotprogress 157 } | dotprogress