diff options
author | Will Holland <william.holland@codethink.co.uk> | 2015-09-21 18:12:04 +0100 |
---|---|---|
committer | Will Holland <william.holland@codethink.co.uk> | 2015-09-21 18:12:04 +0100 |
commit | f34f52a4e8a5d5bbad5337fdf24a489ad055a490 (patch) | |
tree | 54421e14a2d8d6988d01285c76fe408fd31e1266 | |
parent | a2d9ace5804ca56042b4e547786f92b6abb7a91e (diff) | |
download | buildslave-scripts-f34f52a4e8a5d5bbad5337fdf24a489ad055a490.tar.gz |
Be morph architecture aware
-rwxr-xr-x | build_a_system.sh | 1 | ||||
-rw-r--r-- | builder_logic.py | 6 |
2 files changed, 6 insertions, 1 deletions
diff --git a/build_a_system.sh b/build_a_system.sh index 6be12d5..692b8e8 100755 --- a/build_a_system.sh +++ b/build_a_system.sh @@ -5,6 +5,7 @@ set -ex system_name="$1" +system_arch="$2" definitions_dir=$(pwd)/definitions ybd_dir=$(pwd)/ybd diff --git a/builder_logic.py b/builder_logic.py index c734113..fe9b9f9 100644 --- a/builder_logic.py +++ b/builder_logic.py @@ -58,8 +58,12 @@ def find_clusters_affected_by_change(): # TODO for each system get it's custers def build(system): + import platform log('building %s' % system) - exit_val = subprocess.call(['sh','%s' % BUILD_SCRIPT, '%s' % system]) + arch = platform.machine() + if arch == 'aarch64': + arch = 'armv8l64' + exit_val = subprocess.call(['sh','%s' % BUILD_SCRIPT, system, arch]) log('build complete') return exit_val |