summaryrefslogtreecommitdiff
path: root/scripts/build/tools/000-template.sh
diff options
context:
space:
mode:
authorYann E. MORIN" <yann.morin.1998@anciens.enib.fr>2008-05-02 21:59:14 (GMT)
committerYann E. MORIN" <yann.morin.1998@anciens.enib.fr>2008-05-02 21:59:14 (GMT)
commitff1d30c4a3c619bf6e451634c35c23ffce835001 (patch)
tree5c8b7f516ada07f973d70556cd7ac3977106edab /scripts/build/tools/000-template.sh
parentfdb7c1e75d537921898d2068530c137881769eb5 (diff)
For tools/ and debug/ build scripts, annd a numeric prefix, so that they always get built in the same order, in case of library dependencies.
/trunk/scripts/build/debug.sh | 2 1 1 0 +- /trunk/scripts/build/tools.sh | 2 1 1 0 +- 2 files changed, 2 insertions(+), 2 deletions(-)
Diffstat (limited to 'scripts/build/tools/000-template.sh')
-rw-r--r--scripts/build/tools/000-template.sh50
1 files changed, 50 insertions, 0 deletions
diff --git a/scripts/build/tools/000-template.sh b/scripts/build/tools/000-template.sh
new file mode 100644
index 0000000..7440c1a
--- /dev/null
+++ b/scripts/build/tools/000-template.sh
@@ -0,0 +1,50 @@
+# Template file for a tool utility
+
+# Check here wether your tool is enabled or not.
+# This will get redefined over and over again for each tool, so don't
+# count on it in the functions below.
+is_enabled="${CT_FOOBAR}"
+
+# Small function to print the filename
+# Note that this function gets redefined over and over again for each tool.
+# It's of no use when building the toolchain proper, but shows all its
+# usefullness when saving the toolchain and building the tarball.
+# You shall not echo anything if you're not enabled!
+# Echo the name of the file, without the extension, below.
+do_print_filename() {
+ # For example:
+ # [ "{CT_FOOBAR}" = "y" ] || return 0
+ # echo "foobar-${CT_FOOBAR_VERSION}"
+ :
+}
+
+# Put your download code here
+do_tools_foobar_get() {
+ # For example:
+ # CT_GetFile "foobar-${CT_FOOBAR_VERSION}" http://foobar.com/releases/
+ :
+}
+
+# Put your extract code here
+do_tools_foobar_extract() {
+ # For example:
+ # CT_ExtractAndPatch "foobar-${CT_FOOBAR_VERSION}"
+ :
+}
+
+# Put your build code here
+do_tools_foobar_build() {
+ # For example:
+ # mkdir -p "${CT_BUILD_DIR}/build-foobar"
+ # CT_Pushd "${CT_BUILD_DIR}/build-foobar"
+ # "${CT_SRC_DIR}/foobar-${CT_FOOBAR_VERSION}/configure" \
+ # --build=${CT_BUILD} \
+ # --host=${CT_TARGET} \
+ # --prefix=/usr \
+ # --foobar-options
+ # make
+ # make DESTDIR="${CT_SYSROOT_DIR}" install
+ # CT_Popd
+ :
+}
+