1 # This will build and install sstrip to run on host and sstrip target files
3 do_tools_sstrip_get() { :; }
4 do_tools_sstrip_extract() { :; }
5 do_tools_sstrip() { :; }
7 case "${CT_SSTRIP_FROM}" in
10 CT_GetFile "ELFkickers-${CT_SSTRIP_ELFKICKERS_VERSION}" \
11 http://www.muppetlabs.com/~breadbox/pub/software
14 CT_Extract "ELFkickers-${CT_SSTRIP_ELFKICKERS_VERSION}"
15 CT_Patch "ELFkickers-${CT_SSTRIP_ELFKICKERS_VERSION}"
18 CT_DoStep INFO "Installing sstrip"
19 CT_DoExecLog ALL cp -av "${CT_SRC_DIR}/ELFkickers-${CT_SSTRIP_ELFKICKERS_VERSION}/sstrip" \
20 "${CT_BUILD_DIR}/build-strip"
21 cd "${CT_BUILD_DIR}/build-strip"
23 CT_DoLog EXTRA "Building sstrip"
24 CT_DoExecLog ALL make CC="${CT_HOST}-gcc" sstrip
26 CT_DoLog EXTRA "Installing sstrip"
27 CT_DoExecLog ALL install -m 755 sstrip "${CT_PREFIX_DIR}/bin/${CT_TARGET}-sstrip"
35 CT_GetFile sstrip .c http://git.buildroot.net/buildroot/plain/toolchain/sstrip
38 # We leave the sstrip maintenance to the buildroot people:
39 # -> any fix-up goes directly there
40 # -> we don't have patches for it
41 # -> we don't need to patch it
42 # -> just create a directory in src/, and copy it there.
43 CT_DoExecLog DEBUG mkdir -p "${CT_SRC_DIR}/sstrip"
44 CT_DoExecLog DEBUG cp -v "${CT_TARBALLS_DIR}/sstrip.c" "${CT_SRC_DIR}/sstrip"
47 CT_DoStep INFO "Installing sstrip"
48 mkdir -p "${CT_BUILD_DIR}/build-sstrip"
49 cd "${CT_BUILD_DIR}/build-sstrip"
51 CT_DoLog EXTRA "Building sstrip"
52 CT_DoExecLog ALL "${CT_HOST}-gcc" -Wall -o sstrip "${CT_SRC_DIR}/sstrip/sstrip.c"
54 CT_DoLog EXTRA "Installing sstrip"
55 CT_DoExecLog ALL install -m 755 sstrip "${CT_PREFIX_DIR}/bin/${CT_TARGET}-sstrip"