crosstool-ng/scripts/build/tools/200-sstrip.sh
Yann E. MORIN" 8d993f036a Use the common functions (CT_GetSVN, CT_Extract and CT_Patch) to retrieve,
extract and patch sstrip from buildroot.

 /trunk/scripts/build/tools/200-sstrip.sh |   16     3    13     0 +++-------------
 1 file changed, 3 insertions(+), 13 deletions(-)
2009-03-08 11:15:58 +00:00

63 lines
2.0 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() {
CT_GetSVN sstrip svn://uclibc.org/trunk/buildroot/toolchain/sstrip
}
do_tools_sstrip_extract() {
CT_Extract sstrip
CT_Patch 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