1.1 --- a/scripts/build/tools/200-sstrip.sh Mon Mar 15 22:02:02 2010 +0100
1.2 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000
1.3 @@ -1,67 +0,0 @@
1.4 -# This will build and install sstrip to run on host and sstrip target files
1.5 -
1.6 -case "${CT_SSTRIP_FROM}" in
1.7 - ELFkickers)
1.8 - do_tools_sstrip_get() {
1.9 - CT_GetFile "ELFkickers-${CT_SSTRIP_ELFKICKERS_VERSION}" \
1.10 - http://www.muppetlabs.com/~breadbox/pub/software
1.11 - }
1.12 - do_tools_sstrip_extract() {
1.13 - CT_Extract "ELFkickers-${CT_SSTRIP_ELFKICKERS_VERSION}"
1.14 - CT_Patch "ELFkickers-${CT_SSTRIP_ELFKICKERS_VERSION}"
1.15 - }
1.16 - do_tools_sstrip_build() {
1.17 - CT_DoStep INFO "Installing sstrip"
1.18 - CT_DoExecLog ALL cp -av "${CT_SRC_DIR}/ELFkickers-${CT_SSTRIP_ELFKICKERS_VERSION}/sstrip" \
1.19 - "${CT_BUILD_DIR}/build-strip"
1.20 - cd "${CT_BUILD_DIR}/build-strip"
1.21 -
1.22 - CT_DoLog EXTRA "Building sstrip"
1.23 - CT_DoExecLog ALL make CC="${CT_HOST}-gcc" sstrip
1.24 -
1.25 - CT_DoLog EXTRA "Installing sstrip"
1.26 - CT_DoExecLog ALL install -m 755 sstrip "${CT_PREFIX_DIR}/bin/${CT_TARGET}-sstrip"
1.27 -
1.28 - CT_EndStep
1.29 - }
1.30 - ;;
1.31 -
1.32 - buildroot)
1.33 - do_tools_sstrip_get() {
1.34 - CT_GetFile sstrip .c http://git.buildroot.net/buildroot/plain/toolchain/sstrip
1.35 - }
1.36 - do_tools_sstrip_extract() {
1.37 - # We leave the sstrip maintenance to the buildroot people:
1.38 - # -> any fix-up goes directly there
1.39 - # -> we don't have patches for it
1.40 - # -> we don't need to patch it
1.41 - # -> just create a directory in src/, and copy it there.
1.42 - CT_DoExecLog DEBUG mkdir -p "${CT_SRC_DIR}/sstrip"
1.43 - CT_DoExecLog DEBUG cp -v "${CT_TARBALLS_DIR}/sstrip.c" "${CT_SRC_DIR}/sstrip"
1.44 - }
1.45 - do_tools_sstrip_build() {
1.46 - CT_DoStep INFO "Installing sstrip"
1.47 - mkdir -p "${CT_BUILD_DIR}/build-sstrip"
1.48 - cd "${CT_BUILD_DIR}/build-sstrip"
1.49 -
1.50 - CT_DoLog EXTRA "Building sstrip"
1.51 - CT_DoExecLog ALL "${CT_HOST}-gcc" -Wall -o sstrip "${CT_SRC_DIR}/sstrip/sstrip.c"
1.52 -
1.53 - CT_DoLog EXTRA "Installing sstrip"
1.54 - CT_DoExecLog ALL install -m 755 sstrip "${CT_PREFIX_DIR}/bin/${CT_TARGET}-sstrip"
1.55 -
1.56 - CT_EndStep
1.57 - }
1.58 - ;;
1.59 -
1.60 - *) do_tools_sstrip_get() {
1.61 - :
1.62 - }
1.63 - do_tools_sstrip_extract() {
1.64 - :
1.65 - }
1.66 - do_tools_sstrip_build() {
1.67 - :
1.68 - }
1.69 - ;;
1.70 -esac