From 298982aab23ffaaecefa8f7f8bcf377063e70b94 Mon Sep 17 00:00:00 2001 From: "Yann E. MORIN\"" Date: Sun, 11 May 2014 18:42:30 +0200 Subject: 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 --git a/scripts/build/binutils/binutils.sh b/scripts/build/binutils/binutils.sh index b74d28d..4705f54 100644 --- a/scripts/build/binutils/binutils.sh +++ b/scripts/build/binutils/binutils.sh @@ -21,14 +21,12 @@ do_binutils_get() { # 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}" -- cgit v0.10.2-6-g49f6