Patchwork [09,of,13] libc/{, e}glibc: Add CUSTOM version, CUSTOM_LOCATION config options and GetCustom

login
register
mail settings
Submitter David Holsgrove
Date Oct. 11, 2012, 4:53 a.m.
Message ID <88429fc393d9f0b6eaa7.1349931198@localhost.localdomain>
Download mbox | patch
Permalink /patch/190790/
State New
Headers show

Comments

David Holsgrove - Oct. 11, 2012, 4:53 a.m.
# HG changeset patch
# User David Holsgrove <david.holsgrove@xilinx.com>
# Date 1349930382 -36000
# Node ID 88429fc393d9f0b6eaa7fab080ca6d293a888486
# Parent  9ea1b5021fc77582867f74454cd2811f008109ee
libc/{,e}glibc: Add CUSTOM version, CUSTOM_LOCATION config options and GetCustom

CUSTOM_LOCATION config options only presented in menuconfig if component
CUSTOM version selected.

Signed-off-by: "David Holsgrove" <david.holsgrove@xilinx.com>


--
For unsubscribe information see http://sourceware.org/lists.html#faq

Patch

diff -r 9ea1b5021fc7 -r 88429fc393d9 scripts/build/libc/glibc-eglibc.sh-common
--- a/scripts/build/libc/glibc-eglibc.sh-common	Thu Oct 11 14:39:42 2012 +1000
+++ b/scripts/build/libc/glibc-eglibc.sh-common	Thu Oct 11 14:39:42 2012 +1000
@@ -5,7 +5,10 @@ 
     local addon
 
     # Extract the main tarball
-    CT_Extract "${CT_LIBC}-${CT_LIBC_VERSION}"
+    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}"