# HG changeset patch # User "Yann E. MORIN" # Date 1312142828 -7200 # Node ID 35afb309f9574f6d9eb0bc234d453a6ebd1a985c # Parent 6fc224df66e819a3761773911747e3fabdb1f77d libc/uclibc: fix src dir location Now that we akways extract the tarballs in a sane location (see changeset #6e1412ba8da9: scripts/functions: force extract folder to archive basename), the uClibc snapshot dir now has the date (as version) in it, eg.: uClibc-20100710 Signed-off-by: "Yann E. MORIN" diff -r 6fc224df66e8 -r 35afb309f957 scripts/build/libc/uClibc.sh --- a/scripts/build/libc/uClibc.sh Sun Jul 31 20:44:10 2011 +0200 +++ b/scripts/build/libc/uClibc.sh Sun Jul 31 22:07:08 2011 +0200 @@ -24,16 +24,6 @@ return 0 } -libc_uclibc_src_dir() { - if [ -z "${CT_LIBC_UCLIBC_V_snapshot}" \ - -a -z "${CT_LIBC_UCLIBC_V_specific_date}" \ - ]; then - echo "${CT_SRC_DIR}/uClibc-${CT_LIBC_VERSION}" - else - echo "${CT_SRC_DIR}/uClibc" - fi -} - # Extract uClibc do_libc_extract() { CT_Extract "uClibc-${CT_LIBC_VERSION}" @@ -49,7 +39,7 @@ # broken, so just link it in place... if [ "${CT_LIBC_UCLIBC_LOCALES_PREGEN_DATA}" = "y" \ -a ! -f "${CT_SRC_DIR}/.${uclibc_local_tarball}.extracted" ]; then - CT_Pushd "$(libc_uclibc_src_dir)/extra/locale" + CT_Pushd "${CT_SRC_DIR}/uClibc-${CT_LIBC_VERSION}/extra/locale" CT_DoExecLog ALL ln -s "${CT_TARBALLS_DIR}/${uclibc_local_tarball}.tgz" . CT_Popd touch "${CT_SRC_DIR}/.${uclibc_local_tarball}.extracted" @@ -84,7 +74,7 @@ # Simply copy files until uClibc has the ability to build out-of-tree CT_DoLog EXTRA "Copying sources to build dir" - CT_DoExecLog ALL cp -av "$(libc_uclibc_src_dir)" \ + CT_DoExecLog ALL cp -av "${CT_SRC_DIR}/uClibc-${CT_LIBC_VERSION}" \ "${CT_BUILD_DIR}/build-libc-headers" cd "${CT_BUILD_DIR}/build-libc-headers" @@ -170,7 +160,7 @@ # Simply copy files until uClibc has the ability to build out-of-tree CT_DoLog EXTRA "Copying sources to build dir" - CT_DoExecLog ALL cp -av "$(libc_uclibc_src_dir)" \ + CT_DoExecLog ALL cp -av "${CT_SRC_DIR}/uClibc-${CT_LIBC_VERSION}" \ "${CT_BUILD_DIR}/build-libc" cd "${CT_BUILD_DIR}/build-libc"