mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-19 21:03:48 -07:00
Create a stamp file for download completion so that it won't have to be redone later
Unpack newlib before compiling gcc, fixes the bug where header files were not installed
This commit is contained in:
parent
a93bd81d88
commit
c3adc9fd60
1 changed files with 24 additions and 18 deletions
|
@ -44,7 +44,7 @@ COMMON_CFG="--enable-interwork --target=arm-elf --program-prefix=arm-elf- --pref
|
|||
|
||||
# Extra configuration options for each toolchain component
|
||||
BINUTILS_CFG=
|
||||
GCCCORE_CFG="--disable-nls --disable-threads --with-gcc --with-gnu-ld --with-gnu-as --with-dwarf2 --with-newlib --with-headers=../newlib-${NEWLIB_VER}/newlib/libc/include --disable-libssp --disable-libstdcxx-pch --disable-libmudflap --disable-libgomp -v"
|
||||
GCCCORE_CFG="--disable-nls --disable-threads --with-gcc --with-gnu-ld --with-gnu-as --with-dwarf2 --with-newlib --with-headers=${BUILDDIR}/newlib-${NEWLIB_VER}/newlib/libc/include --disable-libssp --disable-libstdcxx-pch --disable-libmudflap --disable-libgomp -v"
|
||||
NEWLIB_CFG=
|
||||
INSIGHT_CFG=
|
||||
GDB_CFG=
|
||||
|
@ -76,6 +76,9 @@ fi
|
|||
mkdir -p ${BUILDDIR}
|
||||
cd ${SRCDIR}
|
||||
|
||||
if [[ -f all.downloaded ]]; then
|
||||
echo Looks like all downloads are complete, skipping downloads
|
||||
else
|
||||
echo Now downloading BINUTILS...
|
||||
wget ${WGET_OPTS} ${BINUTILS}
|
||||
|
||||
|
@ -100,6 +103,9 @@ wget ${WGET_OPTS} ${GMP}
|
|||
echo Now downloading MPFR...
|
||||
wget ${WGET_OPTS} ${MPFR}
|
||||
|
||||
touch all.downloaded
|
||||
fi
|
||||
|
||||
cd ${BUILDDIR}
|
||||
if [[ -f binutils.built ]]; then
|
||||
echo Looks like BINUTILS was already built.
|
||||
|
@ -133,6 +139,7 @@ else
|
|||
ln -s "${BUILDDIR}/gmp-${GMP_VER}" "${BUILDDIR}/gcc-${GCC_VER}/gmp"
|
||||
tar -xjf ../`basename ${MPFR}`
|
||||
ln -s "${BUILDDIR}/mpfr-${MPFR_VER}" "${BUILDDIR}/gcc-${GCC_VER}/mpfr"
|
||||
tar -xzf ../`basename ${NEWLIB}`
|
||||
|
||||
echo ___________________ >> make.log
|
||||
|
||||
|
@ -169,7 +176,6 @@ if [[ -f newlib.built ]]; then
|
|||
echo Looks like NEWLIB was already built.
|
||||
else
|
||||
echo Building NEWLIB...
|
||||
tar -xzf ../`basename ${NEWLIB}`
|
||||
echo ___________________ >> make.log
|
||||
echo Building newlib... >> make.log
|
||||
cd `find . -maxdepth 1 -type d -name 'newlib*'`
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue