summaryrefslogtreecommitdiff
path: root/scripts/build/binutils
diff options
context:
space:
mode:
authorYann E. MORIN" <yann.morin.1998@free.fr>2014-05-11 16:42:30 (GMT)
committerYann E. MORIN" <yann.morin.1998@free.fr>2014-05-11 16:42:30 (GMT)
commit298982aab23ffaaecefa8f7f8bcf377063e70b94 (patch)
treec7cd882e1663cf9ee8241cf50dfc580a574609ee /scripts/build/binutils
parent04a7340d0af9e1202fabba94e1391298435cadd0 (diff)
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>
Diffstat (limited to 'scripts/build/binutils')
-rw-r--r--scripts/build/binutils/binutils.sh8
1 files changed, 3 insertions, 5 deletions
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}"