binutils/binutils: do not forget to extract elf2flt
author"Yann E. MORIN" <yann.morin.1998@free.fr>
Sun May 11 18:42:30 2014 +0200 (2014-05-11)
changeset 331642590ff8521c
parent 3315 464128a8fc3f
child 3317 6b2c4692f132
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" <yann.morin.1998@free.fr>
scripts/build/binutils/binutils.sh
     1.1 --- a/scripts/build/binutils/binutils.sh	Sun May 11 15:43:28 2014 +0200
     1.2 +++ b/scripts/build/binutils/binutils.sh	Sun May 11 18:42:30 2014 +0200
     1.3 @@ -21,14 +21,12 @@
     1.4  # Extract binutils
     1.5  do_binutils_extract() {
     1.6      # If using custom directory location, nothing to do
     1.7 -    if [ "${CT_BINUTILS_CUSTOM}" = "y" \
     1.8 +    if ! [ "${CT_BINUTILS_CUSTOM}" = "y" \
     1.9           -a -d "${CT_SRC_DIR}/binutils-${CT_BINUTILS_VERSION}" ]; then
    1.10 -        return 0
    1.11 +        CT_Extract "binutils-${CT_BINUTILS_VERSION}"
    1.12 +        CT_Patch "binutils" "${CT_BINUTILS_VERSION}"
    1.13      fi
    1.14  
    1.15 -    CT_Extract "binutils-${CT_BINUTILS_VERSION}"
    1.16 -    CT_Patch "binutils" "${CT_BINUTILS_VERSION}"
    1.17 -
    1.18      if [ -n "${CT_ARCH_BINFMT_FLAT}" ]; then
    1.19          CT_Extract "elf2flt-${CT_ELF2FLT_GIT_CSET}"
    1.20          CT_Patch "elf2flt" "${CT_ELF2FLT_GIT_CSET}"