diff options
author | Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> | 2011-12-13 11:51:07 +0100 |
---|---|---|
committer | Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> | 2011-12-13 11:51:07 +0100 |
commit | d6f8cd9b0a714fc22fc1ddd200fb0e4047708df9 (patch) | |
tree | 3c1d382290b48eb3a5c39faa69589d9b0c10af10 | |
parent | 81dc791f8391b321e05c8994d2560f25c8f063be (diff) | |
download | crosstool-ng-d6f8cd9b0a714fc22fc1ddd200fb0e4047708df9.tar.gz crosstool-ng-d6f8cd9b0a714fc22fc1ddd200fb0e4047708df9.tar.bz2 crosstool-ng-d6f8cd9b0a714fc22fc1ddd200fb0e4047708df9.zip |
libc/glibc: no default mode for backend
The caller SHALL explicitly ask for a nmode, and not rely on a default mode.
That's what actually happens, so we can get rid of the default.
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
-rw-r--r-- | scripts/build/libc/glibc-eglibc.sh-common | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/scripts/build/libc/glibc-eglibc.sh-common b/scripts/build/libc/glibc-eglibc.sh-common index f1c7fb35..dba9a761 100644 --- a/scripts/build/libc/glibc-eglibc.sh-common +++ b/scripts/build/libc/glibc-eglibc.sh-common @@ -67,9 +67,9 @@ do_libc() { # Usage: do_libc_backend param=value [...] # Parameter : Definition : Type : Default -# libc_mode : 'startfiles' or 'final' : string : final +# libc_mode : 'startfiles' or 'final' : string : (none) do_libc_backend() { - local libc_mode=final + local libc_mode local src_dir="${CT_SRC_DIR}/${CT_LIBC}-${CT_LIBC_VERSION}" local extra_cc_args local -a extra_config @@ -81,11 +81,11 @@ do_libc_backend() { shift done - if [ "${libc_mode}" = "startfiles" ]; then - CT_DoStep INFO "Installing C library headers & start files" - else # libc_mode = final - CT_DoStep INFO "Installing C library" - fi + case "${libc_mode}" in + startfiles) CT_DoStep INFO "Installing C library headers & start files";; + final) CT_DoStep INFO "Installing C library";; + *) CT_Abort "Unsupported (or unset) libc_mode='${libc_mode}'";; + esac mkdir -p "${CT_BUILD_DIR}/build-libc-${libc_mode}" cd "${CT_BUILD_DIR}/build-libc-${libc_mode}" |