mirror of
https://github.com/crosstool-ng/crosstool-ng.git
synced 2025-06-17 14:58:12 +00:00
binutils/elf2flt: restore the custom location functionality
Somehow, it got lost when incorporating elf2flt in the binutils farmework. Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
This commit is contained in:
@ -14,8 +14,13 @@ do_binutils_get() {
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
if [ -n "${CT_ARCH_BINFMT_FLAT}" ]; then
|
if [ -n "${CT_ARCH_BINFMT_FLAT}" ]; then
|
||||||
|
if [ "${CT_ELF2FLT_CUSTOM}" = "y" ]; then
|
||||||
|
CT_GetCustom "elf2flt" "${CT_ELF2FLT_VERSION}" \
|
||||||
|
"${CT_ELF2FLT_CUSTOM_LOCATION}"
|
||||||
|
else
|
||||||
CT_GetGit elf2flt "${CT_ELF2FLT_GIT_CSET}" git://wh0rd.org/elf2flt.git
|
CT_GetGit elf2flt "${CT_ELF2FLT_GIT_CSET}" git://wh0rd.org/elf2flt.git
|
||||||
fi
|
fi
|
||||||
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
# Extract binutils
|
# Extract binutils
|
||||||
@ -28,9 +33,12 @@ do_binutils_extract() {
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
if [ -n "${CT_ARCH_BINFMT_FLAT}" ]; then
|
if [ -n "${CT_ARCH_BINFMT_FLAT}" ]; then
|
||||||
|
if ! [ "${CT_ELF2FLT_CUSTOM}" = "y" \
|
||||||
|
-a -d "${CT_SRC_DIR}/elf2flt-${CT_ELF2FLT_VERSION}" ]; then
|
||||||
CT_Extract "elf2flt-${CT_ELF2FLT_GIT_CSET}"
|
CT_Extract "elf2flt-${CT_ELF2FLT_GIT_CSET}"
|
||||||
CT_Patch "elf2flt" "${CT_ELF2FLT_GIT_CSET}"
|
CT_Patch "elf2flt" "${CT_ELF2FLT_GIT_CSET}"
|
||||||
fi
|
fi
|
||||||
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
# Build binutils for build -> target
|
# Build binutils for build -> target
|
||||||
|
Reference in New Issue
Block a user