Add two te;plates on how to add a new tool/debug facility.
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/scripts/build/debug/template.sh Sat Jun 16 17:41:01 2007 +0000
1.3 @@ -0,0 +1,50 @@
1.4 +# Template file for a debug utility
1.5 +
1.6 +# Check here wether your debug tool is enabled or not.
1.7 +# This will get redefined over and over again for each tool, so don't
1.8 +# count on it in the functions below.
1.9 +is_enabled="${CT_FOOBAR}"
1.10 +
1.11 +# Small function to print the filename
1.12 +# Note that this function gets redefined over and over for each tool
1.13 +# It's of no use when building the toolchain proper, but shows all its
1.14 +# usefullness when saving the toolchain and building the tarball.
1.15 +# You shall not echo anything if you're not enabled!
1.16 +# Echo the name of the file, without the extension, below.
1.17 +do_print_filename() {
1.18 + # For example:
1.19 + # [ "${CT_FOOBAR}" = "y" ] || return 0
1.20 + # echo "foobar-${CT_FOOBAR_VERSION}"
1.21 + :
1.22 +}
1.23 +
1.24 +# Put your download code here
1.25 +do_debug_foobar_get() {
1.26 + # For example:
1.27 + # CT_GetFile "foobar-${CT_FOOBAR_VERSION}" http://foobar.com/releases/
1.28 + :
1.29 +}
1.30 +
1.31 +# Put your extract code here
1.32 +do_debug_foobar_extract() {
1.33 + # For example:
1.34 + # CT_ExtractAndPatch "foobar-${CT_FOOBAR_VERSION}"
1.35 + :
1.36 +}
1.37 +
1.38 +# Put your build code here
1.39 +do_debug_foobar_build() {
1.40 + # For example:
1.41 + # mkdir -p "${CT_BUIL_DIR}/build-foobar"
1.42 + # CT_Pushd "${CT_BUIL_DIR}/build-foobar"
1.43 + # "${CT_SRC_DIR}/foobar-${CT_FOOBAR_VERSION}/configure" \
1.44 + # --build=${CT_BUILD} \
1.45 + # --host=${CT_TARGET} \
1.46 + # --prefix=/usr \
1.47 + # --foobar-options
1.48 + # make
1.49 + # make DESTDIR="${CT_SYSROOT_DIR}" install
1.50 + # CT_Popd
1.51 + :
1.52 +}
1.53 +
2.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
2.2 +++ b/scripts/build/tools/template.sh Sat Jun 16 17:41:01 2007 +0000
2.3 @@ -0,0 +1,50 @@
2.4 +# Template file for a tool utility
2.5 +
2.6 +# Check here wether your tool is enabled or not.
2.7 +# This will get redefined over and over again for each tool, so don't
2.8 +# count on it in the functions below.
2.9 +is_enabled="${CT_FOOBAR}"
2.10 +
2.11 +# Small function to print the filename
2.12 +# Note that this function gets redefined over and over again for each tool.
2.13 +# It's of no use when building the toolchain proper, but shows all its
2.14 +# usefullness when saving the toolchain and building the tarball.
2.15 +# You shall not echo anything if you're not enabled!
2.16 +# Echo the name of the file, without the extension, below.
2.17 +do_print_filename() {
2.18 + # For example:
2.19 + # [ "{CT_FOOBAR}" = "y" ] || return 0
2.20 + # echo "foobar-${CT_FOOBAR_VERSION}"
2.21 + :
2.22 +}
2.23 +
2.24 +# Put your download code here
2.25 +do_tools_foobar_get() {
2.26 + # For example:
2.27 + # CT_GetFile "foobar-${CT_FOOBAR_VERSION}" http://foobar.com/releases/
2.28 + :
2.29 +}
2.30 +
2.31 +# Put your extract code here
2.32 +do_tools_foobar_extract() {
2.33 + # For example:
2.34 + # CT_ExtractAndPatch "foobar-${CT_FOOBAR_VERSION}"
2.35 + :
2.36 +}
2.37 +
2.38 +# Put your build code here
2.39 +do_tools_foobar_build() {
2.40 + # For example:
2.41 + # mkdir -p "${CT_BUIL_DIR}/build-foobar"
2.42 + # CT_Pushd "${CT_BUIL_DIR}/build-foobar"
2.43 + # "${CT_SRC_DIR}/foobar-${CT_FOOBAR_VERSION}/configure" \
2.44 + # --build=${CT_BUILD} \
2.45 + # --host=${CT_TARGET} \
2.46 + # --prefix=/usr \
2.47 + # --foobar-options
2.48 + # make
2.49 + # make DESTDIR="${CT_SYSROOT_DIR}" install
2.50 + # CT_Popd
2.51 + :
2.52 +}
2.53 +