mirror of
https://github.com/crosstool-ng/crosstool-ng.git
synced 2024-12-25 07:21:05 +00:00
ebf01acb41
- it is unworkable to have CT_ExtactAndPAtch cope with all those silly glibc addons: - they can have 'short' (as 'ports') or 'long' (as glibc-ports-2.7) names - patches are against eithe the short or long name, but non-uniformly use one or the other - it is the reposibility of the component (glibc in this case) to handle corner cases such as those - update all components to use the new functions /trunk/scripts/build/tools/000-template.sh | 3 2 1 0 +- /trunk/scripts/build/tools/100-libelf.sh | 3 2 1 0 +- /trunk/scripts/build/tools/200-sstrip.sh | 3 2 1 0 +- /trunk/scripts/build/kernel/linux.sh | 3 2 1 0 +- /trunk/scripts/build/binutils.sh | 3 2 1 0 +- /trunk/scripts/build/cc/gcc.sh | 3 2 1 0 +- /trunk/scripts/build/debug/000-template.sh | 3 2 1 0 +- /trunk/scripts/build/debug/100-dmalloc.sh | 3 2 1 0 +- /trunk/scripts/build/debug/400-ltrace.sh | 3 2 1 0 +- /trunk/scripts/build/debug/300-gdb.sh | 9 6 3 0 +++-- /trunk/scripts/build/debug/500-strace.sh | 7 3 4 0 ++-- /trunk/scripts/build/debug/200-duma.sh | 19 8 11 0 ++++------ /trunk/scripts/build/libc/glibc.sh | 14 12 2 0 ++++++- /trunk/scripts/build/libc/uClibc.sh | 13 9 4 0 +++++-- /trunk/scripts/build/libc/eglibc.sh | 14 12 2 0 ++++++- /trunk/scripts/build/gmp.sh | 3 2 1 0 +- /trunk/scripts/build/mpfr.sh | 3 2 1 0 +- /trunk/scripts/functions | 68 36 32 0 +++++++++++++++++++----------------- 18 files changed, 108 insertions(+), 69 deletions(-)
66 lines
2.3 KiB
Bash
66 lines
2.3 KiB
Bash
# This will build and install sstrip to run on host and sstrip target files
|
|
|
|
case "${CT_SSTRIP_FROM}" in
|
|
ELFkickers)
|
|
do_tools_sstrip_get() {
|
|
CT_GetFile "ELFkickers-${CT_SSTRIP_ELFKICKERS_VERSION}" \
|
|
http://www.muppetlabs.com/~breadbox/pub/software
|
|
}
|
|
do_tools_sstrip_extract() {
|
|
CT_Extract "ELFkickers-${CT_SSTRIP_ELFKICKERS_VERSION}"
|
|
CT_Patch "ELFkickers-${CT_SSTRIP_ELFKICKERS_VERSION}"
|
|
}
|
|
do_tools_sstrip_build() {
|
|
CT_DoStep INFO "Installing sstrip"
|
|
mkdir -p "${CT_BUILD_DIR}/build-strip"
|
|
cd "${CT_BUILD_DIR}/build-strip"
|
|
( cd "${CT_SRC_DIR}/ELFkickers-${CT_SSTRIP_ELFKICKERS_VERSION}/sstrip"; tar cf - . ) |tar xf -
|
|
|
|
CT_DoLog EXTRA "Building sstrip"
|
|
CT_DoExecLog ALL make CC="${CT_HOST}-gcc" sstrip
|
|
|
|
CT_DoLog EXTRA "Installing sstrip"
|
|
CT_DoExecLog ALL install -m 755 sstrip "${CT_PREFIX_DIR}/bin/${CT_TARGET}-sstrip"
|
|
|
|
CT_EndStep
|
|
}
|
|
;;
|
|
|
|
buildroot)
|
|
do_tools_sstrip_get() {
|
|
# Note: the space between sstrip and .c is on purpose.
|
|
CT_GetFile sstrip .c \
|
|
"http://buildroot.uclibc.org/cgi-bin/viewcvs.cgi/*checkout*/trunk/buildroot/toolchain/sstrip/"
|
|
}
|
|
do_tools_sstrip_extract() {
|
|
# We'll let buildroot guys take care of sstrip maintenance and patching.
|
|
mkdir -p "${CT_SRC_DIR}/sstrip"
|
|
CT_DoExecLog ALL cp -v "${CT_TARBALLS_DIR}/sstrip.c" "${CT_SRC_DIR}/sstrip"
|
|
}
|
|
do_tools_sstrip_build() {
|
|
CT_DoStep INFO "Installing sstrip"
|
|
mkdir -p "${CT_BUILD_DIR}/build-sstrip"
|
|
cd "${CT_BUILD_DIR}/build-sstrip"
|
|
|
|
CT_DoLog EXTRA "Building sstrip"
|
|
CT_DoExecLog ALL "${CT_HOST}-gcc" -Wall -o sstrip "${CT_SRC_DIR}/sstrip/sstrip.c"
|
|
|
|
CT_DoLog EXTRA "Installing sstrip"
|
|
CT_DoExecLog ALL install -m 755 sstrip "${CT_PREFIX_DIR}/bin/${CT_TARGET}-sstrip"
|
|
|
|
CT_EndStep
|
|
}
|
|
;;
|
|
|
|
*) do_tools_sstrip_get() {
|
|
:
|
|
}
|
|
do_tools_sstrip_extract() {
|
|
:
|
|
}
|
|
do_tools_sstrip_build() {
|
|
:
|
|
}
|
|
;;
|
|
esac
|