# HG changeset patch # User "Yann E. MORIN" # Date 1399826550 -7200 # Node ID 42590ff8521c40b38f9cb37983a9be826492b3a1 # Parent 464128a8fc3f103f1c3c15ac51d04cac4495ad6e binutils/binutils: do not forget to extract elf2flt In case we're using a custom (aka local) binutils source, we still need to extract and patch elf2flt. Signed-off-by: "Yann E. MORIN" diff -r 464128a8fc3f -r 42590ff8521c scripts/build/binutils/binutils.sh --- a/scripts/build/binutils/binutils.sh Sun May 11 15:43:28 2014 +0200 +++ b/scripts/build/binutils/binutils.sh Sun May 11 18:42:30 2014 +0200 @@ -21,14 +21,12 @@ # Extract binutils do_binutils_extract() { # If using custom directory location, nothing to do - if [ "${CT_BINUTILS_CUSTOM}" = "y" \ + if ! [ "${CT_BINUTILS_CUSTOM}" = "y" \ -a -d "${CT_SRC_DIR}/binutils-${CT_BINUTILS_VERSION}" ]; then - return 0 + CT_Extract "binutils-${CT_BINUTILS_VERSION}" + CT_Patch "binutils" "${CT_BINUTILS_VERSION}" fi - CT_Extract "binutils-${CT_BINUTILS_VERSION}" - CT_Patch "binutils" "${CT_BINUTILS_VERSION}" - if [ -n "${CT_ARCH_BINFMT_FLAT}" ]; then CT_Extract "elf2flt-${CT_ELF2FLT_GIT_CSET}" CT_Patch "elf2flt" "${CT_ELF2FLT_GIT_CSET}"