summaryrefslogtreecommitdiff
path: root/scripts/build/libc/glibc-eglibc.sh-common
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/build/libc/glibc-eglibc.sh-common')
-rw-r--r--scripts/build/libc/glibc-eglibc.sh-common17
1 files changed, 12 insertions, 5 deletions
diff --git a/scripts/build/libc/glibc-eglibc.sh-common b/scripts/build/libc/glibc-eglibc.sh-common
index af3b1f1..28a36bd 100644
--- a/scripts/build/libc/glibc-eglibc.sh-common
+++ b/scripts/build/libc/glibc-eglibc.sh-common
@@ -4,10 +4,16 @@
do_libc_extract() {
local addon
- # Extract the main tarball
- CT_Extract "${CT_LIBC}-${CT_LIBC_VERSION}"
+ # Attempt CT_EXTRACT only if NOT custom, or CUSTOM_LOCATION is not a directory
+ if [ "${CT_LIBC_CUSTOM}" != "y" \
+ -o ! -d "${CT_LIBC_CUSTOM_LOCATION}" ]; then
+ CT_Extract "${CT_LIBC}-${CT_LIBC_VERSION}"
+ fi
CT_Pushd "${CT_SRC_DIR}/${CT_LIBC}-${CT_LIBC_VERSION}"
- CT_Patch nochdir "${CT_LIBC}" "${CT_LIBC_VERSION}"
+ # Attempt CT_PATCH only if NOT custom
+ if [ "${CT_LIBC_CUSTOM}" != "y" ]; then
+ CT_Patch nochdir "${CT_LIBC}" "${CT_LIBC_VERSION}"
+ fi
# Extract the add-opns
for addon in $(do_libc_add_ons_list " "); do
@@ -214,8 +220,6 @@ do_libc_backend_once() {
else
OPTIMIZE=-O2
fi
- # always include rpc, the user can still override it with TI-RPC
- extra_config+=( --enable-obsolete-rpc )
;;
glibc)
# glibc can't be built without -O2 (reference needed!)
@@ -225,6 +229,9 @@ do_libc_backend_once() {
;;
esac
+ # always include rpc, the user can still override it with TI-RPC
+ extra_config+=( --enable-obsolete-rpc )
+
# Add some default glibc config options if not given by user.
# We don't need to be conditional on wether the user did set different
# values, as they CT_LIBC_GLIBC_EXTRA_CONFIG_ARRAY is passed after