Vampirise patches for binutils 2.17 from buildroot.
1 # This file adds functions to build binutils
2 # Copyright 2007 Yann E. MORIN
3 # Licensed under the GPL v2. See COPYING in the root of this package
6 mkdir -p "${CT_BUILD_DIR}/build-binutils"
7 cd "${CT_BUILD_DIR}/build-binutils"
9 CT_DoStep INFO "Installing binutils"
11 CT_DoLog EXTRA "Configuring binutils"
12 CFLAGS="${CT_CFLAGS_FOR_HOST}" \
13 "${CT_SRC_DIR}/${CT_BINUTILS_FILE}/configure" \
15 --target=${CT_TARGET} \
17 --prefix=${CT_PREFIX_DIR} \
19 ${CT_BINUTILS_EXTRA_CONFIG} \
20 ${BINUTILS_SYSROOT_ARG} 2>&1 |CT_DoLog DEBUG
22 CT_DoLog EXTRA "Building binutils"
23 make ${PARALLELMFLAGS} 2>&1 |CT_DoLog DEBUG
25 CT_DoLog EXTRA "Installing binutils"
26 make install 2>&1 |CT_DoLog DEBUG
28 # Make those new tools available to the core C compiler to come:
29 # Note: some components want the ${TARGET}-{ar,as,ld,strip} commands as
30 # well. Create that (libfloat is one such sucker).
31 mkdir -p "${CT_CC_CORE_PREFIX_DIR}/${CT_TARGET}/bin"
32 mkdir -p "${CT_CC_CORE_PREFIX_DIR}/bin"
33 for t in ar as ld strip; do
34 ln -sv "${CT_PREFIX_DIR}/bin/${CT_TARGET}-${t}" "${CT_CC_CORE_PREFIX_DIR}/${CT_TARGET}/bin/${t}"
35 ln -sv "${CT_PREFIX_DIR}/bin/${CT_TARGET}-${t}" "${CT_CC_CORE_PREFIX_DIR}/bin/${CT_TARGET}-${t}"