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