1 # Template file for a tool utility
3 # Small function to print the filename
4 # Note that this function gets redefined over and over again for each tool.
5 # It's of no use when building the toolchain proper, but shows all its
6 # usefullness when saving the toolchain and building the tarball.
7 # Echo the name of the file, without the extension, below.
10 # echo "foobar-${CT_FOOBAR_VERSION}"
14 # Put your download code here
15 do_tools_foobar_get() {
17 # CT_GetFile "foobar-${CT_FOOBAR_VERSION}" http://foobar.com/releases/
21 # Put your extract code here
22 do_tools_foobar_extract() {
24 # CT_ExtractAndPatch "foobar-${CT_FOOBAR_VERSION}"
28 # Put your build code here
29 do_tools_foobar_build() {
31 # mkdir -p "${CT_BUILD_DIR}/build-foobar"
32 # CT_Pushd "${CT_BUILD_DIR}/build-foobar"
34 # "${CT_SRC_DIR}/foobar-${CT_FOOBAR_VERSION}/configure" \
35 # --build=${CT_BUILD} \
36 # --host=${CT_TARGET} \
39 # CT_DoExecLog ALL make
40 # CT_DoExecLog ALL make DESTDIR="${CT_SYSROOT_DIR}" install