1 # This will build and install sstrip to run on host and sstrip target files
4 do_sstrip_extract() { :; }
5 do_sstrip_for_host() { :; }
7 if [ "${CT_SSTRIP}" = "y" ]; then
9 CT_GetFile sstrip .c http://git.buildroot.net/buildroot/plain/toolchain/sstrip
13 # We leave the sstrip maintenance to the buildroot people:
14 # -> any fix-up goes directly there
15 # -> we don't have patches for it
16 # -> we don't need to patch it
17 # -> just create a directory in src/, and copy it there.
18 CT_DoExecLog DEBUG mkdir -p "${CT_SRC_DIR}/sstrip"
19 CT_DoExecLog DEBUG cp -v "${CT_TARBALLS_DIR}/sstrip.c" "${CT_SRC_DIR}/sstrip"
22 # Build sstrip for host -> target
23 # Note: we don't need sstrip to run on the build machine,
24 # so we do not need the frontend/backend stuff...
25 do_sstrip_for_host() {
27 CT_DoStep INFO "Installing sstrip for host"
28 CT_mkdir_pushd "${CT_BUILD_DIR}/build-sstrip-host"
30 if [ "${CT_STATIC_TOOLCHAIN}" = "y" ]; then
31 sstrip_cflags="-static"
34 CT_DoLog EXTRA "Building sstrip"
35 CT_DoExecLog ALL "${CT_HOST}-gcc" -Wall ${sstrip_cflags} -o sstrip "${CT_SRC_DIR}/sstrip/sstrip.c"
37 CT_DoLog EXTRA "Installing sstrip"
38 CT_DoExecLog ALL install -m 755 sstrip "${CT_PREFIX_DIR}/bin/${CT_TARGET}-sstrip"