yann@479: # Template file for a debug utility yann@479: yann@479: # Check here wether your debug tool is enabled or not. yann@479: # This will get redefined over and over again for each tool, so don't yann@479: # count on it in the functions below. yann@479: is_enabled="${CT_FOOBAR}" yann@479: yann@479: # Small function to print the filename yann@479: # Note that this function gets redefined over and over for each tool yann@479: # It's of no use when building the toolchain proper, but shows all its yann@479: # usefullness when saving the toolchain and building the tarball. yann@479: # You shall not echo anything if you're not enabled! yann@479: # Echo the name of the file, without the extension, below. yann@479: do_print_filename() { yann@479: # For example: yann@479: # [ "${CT_FOOBAR}" = "y" ] || return 0 yann@479: # echo "foobar-${CT_FOOBAR_VERSION}" yann@479: : yann@479: } yann@479: yann@479: # Put your download code here yann@479: do_debug_foobar_get() { yann@479: # For example: yann@479: # CT_GetFile "foobar-${CT_FOOBAR_VERSION}" http://foobar.com/releases/ yann@479: : yann@479: } yann@479: yann@479: # Put your extract code here yann@479: do_debug_foobar_extract() { yann@479: # For example: yann@479: # CT_ExtractAndPatch "foobar-${CT_FOOBAR_VERSION}" yann@479: : yann@479: } yann@479: yann@479: # Put your build code here yann@479: do_debug_foobar_build() { yann@479: # For example: yann@479: # mkdir -p "${CT_BUILD_DIR}/build-foobar" yann@479: # CT_Pushd "${CT_BUILD_DIR}/build-foobar" yann@664: # CT_DoExecLog ALL \ yann@479: # "${CT_SRC_DIR}/foobar-${CT_FOOBAR_VERSION}/configure" \ yann@479: # --build=${CT_BUILD} \ yann@479: # --host=${CT_TARGET} \ yann@479: # --prefix=/usr \ yann@479: # --foobar-options yann@664: # CT_DoExecLog ALL make yann@664: # CT_DoExecLog ALL make DESTDIR="${CT_SYSROOT_DIR}" install yann@479: # CT_Popd yann@479: : yann@479: } yann@479: