summaryrefslogtreecommitdiffstats
path: root/debian
diff options
context:
space:
mode:
authorMichael Olbrich <m.olbrich@pengutronix.de>2020-08-26 11:45:28 +0200
committerMichael Olbrich <m.olbrich@pengutronix.de>2020-08-27 16:37:01 +0200
commita27f1c4d7dfa97cd505e2193e5e9bfce21d66907 (patch)
tree0bdf0d7354ee92224763c681d1bc32627486781a /debian
parentb988ab11940f42420f92de393383720b2e8e7751 (diff)
downloadOSELAS.Toolchain-a27f1c4d7dfa97cd505e2193e5e9bfce21d66907.tar.gz
OSELAS.Toolchain-a27f1c4d7dfa97cd505e2193e5e9bfce21d66907.tar.xz
gencontrol.sh: don't build all toolchains by default
The clang toolchains fail to build on Ubuntu Xenial. So we have several toolchains that come in pairs: one with clang and one without but otherwise identical. Build only one of them. The non-clang version on Ubuntu Xenial and the clang version everywhere else. Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
Diffstat (limited to 'debian')
-rwxr-xr-xdebian/bin/gencontrol.sh8
1 files changed, 7 insertions, 1 deletions
diff --git a/debian/bin/gencontrol.sh b/debian/bin/gencontrol.sh
index 5b94ce9..0ce14e8 100755
--- a/debian/bin/gencontrol.sh
+++ b/debian/bin/gencontrol.sh
@@ -30,7 +30,13 @@ EOF
if [ $# -gt 0 ]; then
configs=( "${@}" )
else
- configs=( ptxconfigs/*.ptxconfig )
+ if [ "$(lsb_release -r -s)" = "16.04" ]; then
+ # Skip the clang toolchains on Ubuntu Xenial
+ configs=( $(ls ptxconfigs/*.ptxconfig | grep -v clang) )
+ else
+ # Skip the corresponding non-clang toolchains
+ configs=( $(comm -3 <(ls ptxconfigs/*.ptxconfig) <(ls ptxconfigs/*.ptxconfig | sed -n 's/_clang-[^_]*_/_/p')) )
+ fi
fi
for configfile in "${configs[@]}"; do
toolchain_name="$(basename "${configfile}" .ptxconfig | sed s/_/-/g)"