yann@479: # This will build and install sstrip to run on host and sstrip target files yann@479: yann@479: case "${CT_SSTRIP_FROM}" in yann@479: ELFkickers) yann@479: do_tools_sstrip_get() { yann@479: CT_GetFile "ELFkickers-${CT_SSTRIP_ELFKICKERS_VERSION}" \ yann@479: http://www.muppetlabs.com/~breadbox/pub/software yann@479: } yann@479: do_tools_sstrip_extract() { yann@1126: CT_Extract "ELFkickers-${CT_SSTRIP_ELFKICKERS_VERSION}" yann@1126: CT_Patch "ELFkickers-${CT_SSTRIP_ELFKICKERS_VERSION}" yann@479: } yann@479: do_tools_sstrip_build() { yann@479: CT_DoStep INFO "Installing sstrip" yann@1678: CT_DoExecLog ALL cp -av "${CT_SRC_DIR}/ELFkickers-${CT_SSTRIP_ELFKICKERS_VERSION}/sstrip" \ yann@1678: "${CT_BUILD_DIR}/build-strip" yann@479: cd "${CT_BUILD_DIR}/build-strip" yann@479: yann@479: CT_DoLog EXTRA "Building sstrip" yann@1041: CT_DoExecLog ALL make CC="${CT_HOST}-gcc" sstrip yann@479: yann@479: CT_DoLog EXTRA "Installing sstrip" yann@669: CT_DoExecLog ALL install -m 755 sstrip "${CT_PREFIX_DIR}/bin/${CT_TARGET}-sstrip" yann@479: yann@479: CT_EndStep yann@479: } yann@479: ;; yann@479: yann@479: buildroot) yann@479: do_tools_sstrip_get() { yann@1334: CT_GetFile sstrip .c http://git.buildroot.net/buildroot/plain/toolchain/sstrip yann@479: } yann@479: do_tools_sstrip_extract() { yann@1334: # We leave the sstrip maintenance to the buildroot people: yann@1334: # -> any fix-up goes directly there yann@1334: # -> we don't have patches for it yann@1334: # -> we don't need to patch it yann@1334: # -> just create a directory in src/, and copy it there. yann@1334: CT_DoExecLog DEBUG mkdir -p "${CT_SRC_DIR}/sstrip" yann@1334: CT_DoExecLog DEBUG cp -v "${CT_TARBALLS_DIR}/sstrip.c" "${CT_SRC_DIR}/sstrip" yann@479: } yann@479: do_tools_sstrip_build() { yann@479: CT_DoStep INFO "Installing sstrip" yann@479: mkdir -p "${CT_BUILD_DIR}/build-sstrip" yann@479: cd "${CT_BUILD_DIR}/build-sstrip" yann@479: yann@479: CT_DoLog EXTRA "Building sstrip" yann@1041: CT_DoExecLog ALL "${CT_HOST}-gcc" -Wall -o sstrip "${CT_SRC_DIR}/sstrip/sstrip.c" yann@479: yann@479: CT_DoLog EXTRA "Installing sstrip" yann@669: CT_DoExecLog ALL install -m 755 sstrip "${CT_PREFIX_DIR}/bin/${CT_TARGET}-sstrip" yann@479: yann@479: CT_EndStep yann@479: } yann@479: ;; yann@479: yann@1112: *) do_tools_sstrip_get() { yann@479: : yann@479: } yann@479: do_tools_sstrip_extract() { yann@479: : yann@479: } yann@479: do_tools_sstrip_build() { yann@479: : yann@479: } yann@479: ;; yann@479: esac