libc/uClibc: Add CUSTOM version and 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>
[yann.morin.1998@free.fr: fix indentation, don't patch custom dir location]
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Message-Id: <712995e3e719fbbe24af.1349931201@localhost.localdomain>
PatchWork-Id: 190794
2 # (C) 2008 Yann E. MORIN <yann.morin.1998@free.fr>
3 # Licensed under the GPL v.2
9 case "${LD_PRELOAD}" in
11 *) LD_PRELOAD="${LIBDUMA_SO} ${LD_PRELOAD}";;
16 # We use a suposedly POSIX-compliant shell: /bin/sh
17 # -> we can't use "${LD_PRELOAD//${LIBDUMA_SO}/}", it's not POSIX
18 # We don't know if sed will be present on the target
19 # -> we can't use $(echo "${LD_PRELOAD}" |sed -r -e "s|${LIBDUMA_SO}||;")
20 # So, iterate through LD_PRELOAD, and keep only those libs that
21 # are not "${LIBDUMA_SO}"
22 old_LD_PRELOAD="${LD_PRELOAD}"
24 for lib in ${old_LD_PRELOAD}; do
25 [ "${lib}" = "${LIBDUMA_SO}" ] || LD_PRELOAD="${LD_PRELOAD} ${lib}"
31 case "${LD_PRELOAD}" in
32 *${LIBDUMA_SO}*) echo "duma is enabled";;
33 *) echo "duma is disabled";;
41 Sets, unsets or show DUMA usage.
42 $0 <executable [arg...]>
43 Execute 'executable' (with arguments 'args') using DUMA.
45 false # Don't 'exit', we could well be source'd