summaryrefslogtreecommitdiffstats
path: root/build_one.sh
diff options
context:
space:
mode:
authorMichael Olbrich <m.olbrich@pengutronix.de>2012-10-21 17:34:53 +0200
committerMichael Olbrich <m.olbrich@pengutronix.de>2012-12-05 16:32:10 +0100
commit7813e5801882bd8de6cc3949bcb1e4bef9a0ab39 (patch)
treef605096b9a83e4b7d7252c4b61d157db952342ee /build_one.sh
parent796a1846fb7970132d9627be1a775e298cfbd614 (diff)
downloadOSELAS.Toolchain-7813e5801882bd8de6cc3949bcb1e4bef9a0ab39.tar.gz
OSELAS.Toolchain-7813e5801882bd8de6cc3949bcb1e4bef9a0ab39.tar.xz
add script to package on toolchain
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
Diffstat (limited to 'build_one.sh')
-rwxr-xr-xbuild_one.sh22
1 files changed, 22 insertions, 0 deletions
diff --git a/build_one.sh b/build_one.sh
new file mode 100755
index 0000000..8e3a8fb
--- /dev/null
+++ b/build_one.sh
@@ -0,0 +1,22 @@
+#!/bin/bash
+
+pattern="$1"
+config=( $(find ptxconfigs/ -path "*${pattern}*.ptxconfig") )
+
+if [ ${#config[@]} -eq 0 ]; then
+ echo "Could not find config for '${pattern}'!"
+ exit 1
+fi
+if [ ${#config[@]} -gt 1 ]; then
+ echo "'${pattern}' matches more than on config:"
+ for cfg in "${config[@]}"; do
+ echo -e "\t${cfg}"
+ done
+ exit 1
+fi
+
+target="${config#ptxconfigs/}"
+target="${target%.ptxconfig}"
+target="gstate/${target//_/-}.pkgs"
+
+exec "$(dirname $0)/build_all_v2.mk" "${target}"