update
This commit is contained in:
+12
-1
@@ -3,6 +3,17 @@ export PREFIX="`pwd`/rel-bin/${TARGET}"
|
||||
export PATH="${PREFIX}/bin:${PATH}"
|
||||
export OUT="`pwd`/out"
|
||||
|
||||
if [ "${1}" == "64" ]; then
|
||||
export CC="cc -m64"
|
||||
export CXX="c++ -m64"
|
||||
elif [ "${1}" == "32" ]
|
||||
export CC="cc -m32"
|
||||
export CXX="c++ -m32"
|
||||
else
|
||||
export CC="cc"
|
||||
export CXX="c++"
|
||||
fi
|
||||
|
||||
#### JEŚLI BĘDĄ NOWE WERSJE BINUTILS'A i GCC PROSZĘ ZMIENIĆ NUMER!!!
|
||||
export binutils_version="2.31" #TU ZMIENIAMY!
|
||||
export newlib_version="3.0.0" #TU ZMIENIAMY!
|
||||
@@ -83,7 +94,7 @@ if (
|
||||
then
|
||||
find ${PREFIX} | xargs file | grep "ELF" | grep "executable" | cut -f 1 -d ":" | xargs strip -S 2>/dev/null
|
||||
mkdir -pv out
|
||||
if [ "${CC}" == "cc -m64" ]; then
|
||||
if [ "${1}" == "64" ]; then
|
||||
(cd ${PREFIX}; tar -cJf "${OUT}/${TARGET}-`date +"%d-%m-%Y"`_x86-64.txz" .)
|
||||
else
|
||||
(cd ${PREFIX}; tar -cJf "${OUT}/${TARGET}-`date +"%d-%m-%Y"`_x86-32.txz" .)
|
||||
|
||||
Reference in New Issue
Block a user